|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.saxon.value.Value
net.sf.saxon.value.EmptySequence
public final class EmptySequence
An EmptySequence object represents a sequence containing no members.
| Field Summary |
|---|
| Fields inherited from class net.sf.saxon.value.Value |
|---|
EMPTY_CLASS_ARRAY |
| Fields inherited from interface net.sf.saxon.expr.Expression |
|---|
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD |
| Fields inherited from interface net.sf.saxon.om.ValueRepresentation |
|---|
EMPTY_VALUE_ARRAY |
| Method Summary | |
|---|---|
void |
display(int level,
NamePool pool,
PrintStream out)
Diagnostic print of expression structure |
boolean |
effectiveBooleanValue(XPathContext context)
Get the effective boolean value - always false |
boolean |
equals(Object other)
Is this expression the same as another expression? |
int |
getCardinality()
Determine the static cardinality |
int |
getImplementationMethod()
An implementation of Expression must provide at least one of the methods evaluateItem(), iterate(), or process(). |
static EmptySequence |
getInstance()
Get the implicit instance of this class |
ItemType |
getItemType(TypeHierarchy th)
Determine the item type |
int |
getLength()
Get the length of the sequence |
int |
getSpecialProperties()
Get the static properties of this expression (other than its type). |
int |
hashCode()
Return a hash code to support the equals() function |
SequenceIterator |
iterate(XPathContext context)
Return an iteration over the sequence |
| Methods inherited from class net.sf.saxon.value.Value |
|---|
asItem, asIterator, asValue, checkPermittedContents, collapseWhitespace, convert, convertJavaObjectToXPath, convertToJava, evaluateAsString, evaluateItem, getDependencies, getIterator, getParentExpression, getStringValue, itemAt, iterateSubExpressions, makeQNameValue, normalizeWhitespace, optimize, process, promote, reduce, schemaEquals, simplify, stringToNumber, toString, trimWhitespace, typeCheck |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static EmptySequence getInstance()
public int getImplementationMethod()
public SequenceIterator iterate(XPathContext context)
context - supplies the context for evaluation
public ItemType getItemType(TypeHierarchy th)
getItemType in interface ExpressiongetItemType in class Valueth -
public int getCardinality()
getCardinality in interface ExpressiongetCardinality in class ValueStaticProperty.ALLOWS_ONE,
StaticProperty.ALLOWS_ZERO_OR_MORE, StaticProperty.ALLOWS_ZERO_OR_ONE,
StaticProperty.ALLOWS_ONE_OR_MORE, StaticProperty.EMPTY. This default
implementation returns ZERO_OR_MORE (which effectively gives no
information).public int getSpecialProperties()
getSpecialProperties in interface ExpressiongetSpecialProperties in class ValueStaticProperty.NON_CREATIVEpublic final int getLength()
getLength in class Valuepublic boolean equals(Object other)
equals in class ValueClassCastException - if the values are not comparablepublic int hashCode()
Value
hashCode in class Valuepublic boolean effectiveBooleanValue(XPathContext context)
effectiveBooleanValue in interface ExpressioneffectiveBooleanValue in class Valuecontext - The context in which the expression is to be evaluated
public void display(int level,
NamePool pool,
PrintStream out)
display in interface Expressiondisplay in class Valuelevel - indentation level for this expressionpool - NamePool used to expand any names appearing in the expressionout - Output destination
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||