public class RootExpression extends SingletonExpression
staticContext| Constructor | Description |
|---|---|
RootExpression() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
display(int level) |
Diagnostic print of expression structure
|
boolean |
evaluateAsBoolean(Context context) |
Evaluate as a boolean.
|
java.lang.String |
evaluateAsString(Context context) |
Evaluate as a string
|
int |
getDependencies() |
Determine which aspects of the context the expression depends on.
|
NodeInfo |
getNode(Context context) |
Return the first element selected by this Expression
|
Expression |
reduce(int dependencies,
Context context) |
Perform a partial evaluation of the expression, by eliminating specified dependencies
on the context.
|
Expression |
simplify() |
Simplify an expression
|
containsReferences, evaluateAsNumber, getStaticContext, indent, make, setStaticContext, usesCurrentevaluate, getDataType, outputStringValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitenumerate, evaluateAsNodeSet, isContextDocumentNodeSet, selectFirstpublic Expression simplify() throws XPathException
simplify in class ExpressionXPathExceptionpublic NodeInfo getNode(Context context) throws XPathException
getNode in class SingletonExpressioncontext - The evaluation contextXPathExceptionpublic java.lang.String evaluateAsString(Context context) throws XPathException
evaluateAsString in class SingletonExpressioncontext - The context for evaluationXPathExceptionpublic boolean evaluateAsBoolean(Context context) throws XPathException
evaluateAsBoolean in class SingletonExpressioncontext - The context (not used)XPathExceptionpublic 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 void display(int level)
display in class Expression