com.icl.saxon.expr
public class ParentNodeExpression 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 node selected by this SingletonExpression |
Expression | reduce(int dependencies, Context context)
Perform a partial evaluation of the expression, by eliminating specified dependencies
on the context. |
Parameters: context The context in which the expression is to be evaluated
Returns: true unless the current node is the Document node
Parameters: context The context in which the expression is to be evaluated
Returns: the value of the current node, identified by the context
Parameters: context The context for the evaluation
Returns: the parent of the current node defined by the context
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