public class NodeListExpression extends NodeSetExpression
staticContext
Constructor | Description |
---|---|
NodeListExpression(Expression exp) |
Constructor
|
Modifier and Type | Method | 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
|
containsReferences, evaluateAsNumber, getStaticContext, indent, isContextDocumentNodeSet, make, setStaticContext, usesCurrent
evaluate, evaluateAsBoolean, evaluateAsNodeSet, evaluateAsString, getDataType, outputStringValue, selectFirst
public NodeListExpression(Expression exp)
exp
- The expression that delivers the unsorted node-setpublic Expression simplify() throws XPathException
simplify
in class Expression
XPathException
public int getDependencies()
getDependencies
in class Expression
public Expression reduce(int dependencies, Context context) throws XPathException
reduce
in class Expression
dependencies
- The dependencies to be removedcontext
- The context to be used for the partial evaluationXPathException
public NodeEnumeration enumerate(Context c, boolean sort) throws XPathException
enumerate
in class NodeSetExpression
c
- 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