|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.icl.saxon.expr.Expression com.icl.saxon.expr.NodeSetExpression com.icl.saxon.expr.SingletonExpression
A node set expression that will always return zero or one nodes
Field Summary |
Fields inherited from class com.icl.saxon.expr.Expression |
staticContext |
Constructor Summary | |
SingletonExpression()
|
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. |
java.lang.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 |
Methods inherited from class com.icl.saxon.expr.NodeSetExpression |
evaluate, getDataType, outputStringValue |
Methods inherited from class com.icl.saxon.expr.Expression |
containsReferences, display, evaluateAsNumber, getDependencies, getStaticContext, indent, make, reduce, setStaticContext, simplify, usesCurrent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SingletonExpression()
Method Detail |
public boolean isContextDocumentNodeSet()
isContextDocumentNodeSet
in class Expression
public abstract NodeInfo getNode(Context context) throws XPathException
XPathException
public NodeInfo selectFirst(Context context) throws XPathException
selectFirst
in class NodeSetExpression
context
- The context for the evaluation
XPathException
public NodeEnumeration enumerate(Context context, boolean sort) throws XPathException
enumerate
in class NodeSetExpression
context
- the evaluation contextsort
- Indicates result must be in document order
XPathException
public NodeSetValue evaluateAsNodeSet(Context context) throws XPathException
evaluateAsNodeSet
in class NodeSetExpression
context
- The context in which the expression is to be evaluated
XPathException
public java.lang.String evaluateAsString(Context context) throws XPathException
evaluateAsString
in class NodeSetExpression
context
- The context in which the expression is to be evaluated
XPathException
public boolean evaluateAsBoolean(Context context) throws XPathException
evaluateAsBoolean
in class NodeSetExpression
context
- The context in which the expression is to be evaluated
XPathException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |