com.icl.saxon.expr
public class RootExpression extends SingletonExpression
Method Summary | |
---|---|
void | display(int level)
Diagnostic print of expression structure |
boolean | evaluateAsBoolean(Context context)
Evaluate as a boolean. |
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 |
Parameters: context The context (not used)
Returns: true (always - because the nodeset is never empty)
Parameters: context The context for evaluation
Returns: The concatenation of all the character data within the document
Parameters: context The evaluation context
Returns: the NodeInfo of the first selected element, or null if no element is selected
Parameters: dependencies The dependencies to be removed context The context to be used for the partial evaluation
Returns: a new expression that does not have any of the specified dependencies
Returns: the simplified expression