|
||||||||||
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
A NodeSetExpression is any expression denoting a set of nodes.
This is an abstract class, the methods are defaults which may be overridden in subclasses
Field Summary |
Fields inherited from class com.icl.saxon.expr.Expression |
staticContext |
Constructor Summary | |
NodeSetExpression()
|
Method Summary | |
abstract NodeEnumeration |
enumerate(Context context,
boolean sorted)
Return a node enumeration. |
Value |
evaluate(Context context)
Evaluate this node-set. |
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. |
int |
getDataType()
Determine the data type of the exprssion, if possible |
void |
outputStringValue(Outputter out,
Context context)
Evaluate an expression as a String and write the result to the specified outputter. |
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.Expression |
containsReferences, display, evaluateAsNumber, getDependencies, getStaticContext, indent, isContextDocumentNodeSet, 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 NodeSetExpression()
Method Detail |
public abstract NodeEnumeration enumerate(Context context, boolean sorted) throws XPathException
enumerate
in class Expression
context
- The evaluation contextsorted
- True if the nodes must be returned in document order
XPathException
- when the expression does not return a nodeset.public Value evaluate(Context context) throws XPathException
evaluate
in class Expression
context
- The context in which the expression is to be evaluated
XPathException
public NodeInfo selectFirst(Context context) throws XPathException
context
- The context for the evaluation
XPathException
public java.lang.String evaluateAsString(Context context) throws XPathException
evaluateAsString
in class Expression
context
- The context in which the expression is to be evaluated
XPathException
public void outputStringValue(Outputter out, Context context) throws TransformerException
outputStringValue
in class Expression
context
- The context in which the expression is to be evaluatedout
- The required outputter
TransformerException
public boolean evaluateAsBoolean(Context context) throws XPathException
evaluateAsBoolean
in class Expression
context
- The context in which the expression is to be evaluated
XPathException
public NodeSetValue evaluateAsNodeSet(Context context) throws XPathException
evaluateAsNodeSet
in class Expression
context
- The context in which the expression is to be evaluated
XPathException
- when the expression does not return a nodeset.public int getDataType()
getDataType
in class Expression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |