|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.sf.saxon.xpath.XPathExpression
XPathExpression represents a compiled XPath expression that can be repeatedly evaluated.
Note that the object contains the context node, so it is not thread-safe.
| Constructor Summary | |
protected |
XPathExpression(Expression exp,
Configuration config)
The constructor is protected, to ensure that instances can only be created using the createExpression() method of XPathEvaluator |
| Method Summary | |
java.util.List |
evaluate()
Execute a prepared XPath expression, returning the results as a List. |
java.lang.Object |
evaluateSingle()
Execute a prepared XPath expression, returning the first item in the result. |
SequenceIterator |
rawIterator()
Get a raw iterator over the results of the expression. |
void |
setContextNode(NodeInfo node)
Set the context node for evaluating the expression. |
void |
setSortKey(XPathExpression sortKey)
Define the sort order for the results of the expression. |
protected void |
setStackFrameMap(SlotManager map)
Define the number of slots needed for local variables within the expression |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected XPathExpression(Expression exp,
Configuration config)
| Method Detail |
protected void setStackFrameMap(SlotManager map)
public void setSortKey(XPathExpression sortKey)
sortKey - an XPathExpression, which will be applied to each item in the sequence;
the result of this expression determines the ordering of the list returned by the evaluate()
method. The sortKey can be null, to clear a previous sort key.public void setContextNode(NodeInfo node)
public java.util.List evaluate()
throws XPathException
XPathException
public java.lang.Object evaluateSingle()
throws XPathException
XPathException
public SequenceIterator rawIterator()
throws XPathException
XPathException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||