|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.saxon.value.Value | +--net.sf.saxon.value.SequenceValue
A SequenceValue object represents a sequence whose members are all AtomicValues or Nodes.
Field Summary |
Fields inherited from interface net.sf.saxon.expr.Expression |
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD |
Constructor Summary | |
SequenceValue()
|
Method Summary | |
java.lang.Object |
convertToJava(java.lang.Class target,
Configuration config,
XPathContext context)
Convert to Java object (for passing to external functions) |
void |
display(int level,
NamePool pool,
java.io.PrintStream out)
Diagnostic display of the expression |
boolean |
effectiveBooleanValue(XPathContext context)
Get the effective boolean value of the expression. |
boolean |
equals(java.lang.Object obj)
Compare two sequence values for equality. |
java.lang.String |
evaluateAsString(XPathContext context)
Evaluate an expression as a String. |
Item |
evaluateItem(XPathContext context)
Evaluate as a singleton item (or empty sequence) |
int |
getCardinality()
Determine the cardinality |
int |
getImplementationMethod()
An implementation of Expression must provide at least one of the methods evaluateItem(), iterate(), or process(). |
ItemType |
getItemType()
Determine the data type of the items in the expression, if possible |
java.lang.String |
getStringValue()
Convert the value to a string, using the serialization rules. |
int |
hashCode()
Return a hash code to support the equals() function |
Item |
itemAt(int n)
Get the n'th item in the sequence (starting from 0). |
SequenceExtent |
materialize()
Materialize the SequenceValue as a SequenceExtent |
void |
process(XPathContext context)
Process the instruction, without returning any tail calls |
Methods inherited from class net.sf.saxon.value.Value |
analyze, asItem, asValue, collapseWhitespace, convertJavaObjectToXPath, getDependencies, getParentExpression, getSpecialProperties, inverse, iterateSubExpressions, normalizeWhitespace, promote, simplify, stringToNumber, toString, trimWhitespace |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sf.saxon.expr.Expression |
iterate |
Constructor Detail |
public SequenceValue()
Method Detail |
public SequenceExtent materialize() throws XPathException
XPathException
public final int getImplementationMethod()
public final void process(XPathContext context) throws XPathException
context
- The dynamic context, giving access to the current node,
the current variables, etc.
XPathException
public ItemType getItemType()
public int getCardinality()
public Item itemAt(int n) throws XPathException
XPathException
public Item evaluateItem(XPathContext context) throws XPathException
context
- The context in which the expression is to be evaluated
XPathException
- if any dynamic error occurs evaluating the
expressionpublic java.lang.String getStringValue() throws XPathException
getStringValue
in class Value
XPathException
- The method can fail if evaluation of the value
has been deferred, and if a failure occurs during the deferred evaluation.
No failure is possible in the case of an AtomicValue.public java.lang.String evaluateAsString(XPathContext context) throws XPathException
context
- The context in which the expression is to be evaluated
XPathException
- if any dynamic error occurs evaluating the
expression
java.lang.ClassCastException
- if the result type of the
expression is not xs:string?public boolean effectiveBooleanValue(XPathContext context) throws XPathException
context
- The context in which the expression is to be evaluated
XPathException
- if any dynamic error occurs evaluating the
expressionpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object convertToJava(java.lang.Class target, Configuration config, XPathContext context) throws XPathException
convertToJava
in class Value
target
- The class required by the external functionconfig
- The configuration (needed for access to schema information)
XPathException
public void display(int level, NamePool pool, java.io.PrintStream out)
level
- 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 |