public abstract class NodeSetExpression extends Expression
staticContext| Constructor and Description |
|---|
NodeSetExpression() |
| Modifier and Type | Method and Description |
|---|---|
abstract NodeEnumeration |
enumerate(Context context,
boolean sorted)
Return a node enumeration.
|
Value |
evaluate(Context context)
Evaluate this node-set.
|
boolean |
evaluateAsBoolean(Context context)
Evaluate as a boolean.
|
NodeSetValue |
evaluateAsNodeSet(Context context)
Evaluate an expression as a NodeSet.
|
java.lang.String |
evaluateAsString(Context context)
Evaluate as a string.
|
int |
getDataType()
Determine the data type of the exprssion, if possible
|
void |
outputStringValue(Outputter out,
Context context)
Evaluate an expression as a String and write the result to the
specified outputter.
|
NodeInfo |
selectFirst(Context context)
Return the first node selected by this Expression when evaluated
in the current context
|
containsReferences, display, evaluateAsNumber, getDependencies, getStaticContext, indent, isContextDocumentNodeSet, make, reduce, setStaticContext, simplify, usesCurrentpublic abstract NodeEnumeration enumerate(Context context, boolean sorted) throws XPathException
enumerate in class Expressioncontext - The evaluation contextsorted - True if the nodes must be returned in document orderXPathException - when the expression does not return a nodeset.public Value evaluate(Context context) throws XPathException
evaluate in class Expressioncontext - The context in which the expression is to be evaluatedXPathExceptionpublic NodeInfo selectFirst(Context context) throws XPathException
context - The context for the evaluationXPathExceptionpublic java.lang.String evaluateAsString(Context context) throws XPathException
evaluateAsString in class Expressioncontext - The context in which the expression is to be evaluatedXPathExceptionpublic void outputStringValue(Outputter out, Context context) throws javax.xml.transform.TransformerException
outputStringValue in class Expressioncontext - The context in which the expression is to be evaluatedout - The required outputterjavax.xml.transform.TransformerExceptionpublic boolean evaluateAsBoolean(Context context) throws XPathException
evaluateAsBoolean in class Expressioncontext - The context in which the expression is to be evaluatedXPathExceptionpublic NodeSetValue evaluateAsNodeSet(Context context) throws XPathException
evaluateAsNodeSet in class Expressioncontext - The context in which the expression is to be evaluatedXPathException - when the expression does not return a nodeset.public int getDataType()
getDataType in class Expression