public class NodeListExpression extends NodeSetExpression
staticContext| Constructor and Description |
|---|
NodeListExpression(Expression exp)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
display(int level)
Diagnostic print of expression structure
|
NodeEnumeration |
enumerate(Context c,
boolean sort)
Return an enumeration that returns the nodes in document order
|
int |
getDependencies()
Determine which aspects of the context the expression depends on.
|
Expression |
reduce(int dependencies,
Context context)
Perform a partial evaluation of the expression, by eliminating specified dependencies
on the context.
|
Expression |
simplify()
Simplify the expression
|
evaluate, evaluateAsBoolean, evaluateAsNodeSet, evaluateAsString, getDataType, outputStringValue, selectFirstcontainsReferences, evaluateAsNumber, getStaticContext, indent, isContextDocumentNodeSet, make, setStaticContext, usesCurrentpublic NodeListExpression(Expression exp)
exp - The expression that delivers the unsorted node-setpublic Expression simplify() throws XPathException
simplify in class ExpressionXPathExceptionpublic int getDependencies()
getDependencies in class Expressionpublic Expression reduce(int dependencies, Context context) throws XPathException
reduce in class Expressiondependencies - The dependencies to be removedcontext - The context to be used for the partial evaluationXPathExceptionpublic NodeEnumeration enumerate(Context c, boolean sort) throws XPathException
enumerate in class NodeSetExpressionc - the evaluation contextsort: - ignored, this class is used because the enumeration is always in
document orderXPathException - when the expression does not return a nodeset.public void display(int level)
display in class Expression