com.icl.saxon.expr
public abstract class SingletonExpression extends NodeSetExpression
| Method Summary | |
|---|---|
| NodeEnumeration | enumerate(Context context, boolean sort)
Evaluate the expression in a given context to return a Node enumeration |
| boolean | evaluateAsBoolean(Context context)
Evaluate as a boolean. |
| NodeSetValue | evaluateAsNodeSet(Context context)
Evaluate an expression as a NodeSet. |
| String | evaluateAsString(Context context)
Evaluate as a string. |
| abstract NodeInfo | getNode(Context context)
Get the single node to which this expression refers |
| boolean | isContextDocumentNodeSet()
Determine, in the case of an expression whose data type is Value.NODESET,
whether all the nodes in the node-set are guaranteed to come from the same
document as the context node. |
| NodeInfo | selectFirst(Context context)
Return the first node selected by this Expression when evaluated in the current context |
Parameters: context the evaluation context sort Indicates result must be in document order
Parameters: context The context in which the expression is to be evaluated
Returns: true if there are any nodes selected by the NodeSetExpression
Parameters: context The context in which the expression is to be evaluated
Returns: the value of the expression, evaluated in the current context
Parameters: context The context in which the expression is to be evaluated
Returns: true if there are any nodes selected by the NodeSetExpression
Parameters: context The context for the evaluation
Returns: the NodeInfo of the first node in document order, or null if the node-set is empty.