AxisExpression
, FilterExpression
, NodeListExpression
, PathExpression
, SingletonExpression
, SortedSelection
, UnionExpression
public abstract class NodeSetExpression extends Expression
staticContext
Constructor | Description |
---|---|
NodeSetExpression() |
Modifier and Type | Method | 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, usesCurrent
public abstract NodeEnumeration enumerate(Context context, boolean sorted) throws XPathException
enumerate
in class Expression
context
- 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 Expression
context
- The context in which the expression is to be evaluatedXPathException
public NodeInfo selectFirst(Context context) throws XPathException
context
- The context for the evaluationXPathException
public java.lang.String evaluateAsString(Context context) throws XPathException
evaluateAsString
in class Expression
context
- The context in which the expression is to be evaluatedXPathException
public void outputStringValue(Outputter out, Context context) throws javax.xml.transform.TransformerException
outputStringValue
in class Expression
context
- The context in which the expression is to be evaluatedout
- The required outputterjavax.xml.transform.TransformerException
public boolean evaluateAsBoolean(Context context) throws XPathException
evaluateAsBoolean
in class Expression
context
- The context in which the expression is to be evaluatedXPathException
public NodeSetValue evaluateAsNodeSet(Context context) throws XPathException
evaluateAsNodeSet
in class Expression
context
- 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