Package org.apache.xpath.axes
Class ReverseAxesWalker
java.lang.Object
org.apache.xpath.Expression
org.apache.xpath.patterns.NodeTest
org.apache.xpath.axes.PredicatedNodeTest
org.apache.xpath.axes.AxesWalker
org.apache.xpath.axes.ReverseAxesWalker
- All Implemented Interfaces:
Serializable,Cloneable,SourceLocator,PathComponent,SubContextList,ExpressionNode,ExpressionOwner,XPathVisitable
Walker for a reverse axes.
- See Also:
-
Field Summary
Fields inherited from class org.apache.xpath.patterns.NodeTest
SCORE_NODETEST, SCORE_NONE, SCORE_NSWILD, SCORE_OTHER, SCORE_QNAME, SHOW_BYFUNCTION, SUPPORTS_PRE_STRIPPING, WILD -
Method Summary
Modifier and TypeMethodDescriptionvoiddetach()Detaches the walker from the set which it iterated over, releasing any computational resources and placing the iterator in the INVALID state.intgetLastPos(XPathContext xctxt) Get the number of nodes in this node list.booleanReturns true if all the nodes in the iteration well be returned in document order.booleanTells if this is a reverse axes.voidsetRoot(int root) Set the root node of the TreeWalker.Methods inherited from class org.apache.xpath.axes.AxesWalker
callVisitors, clone, deepEquals, getAnalysisBits, getAxis, getCurrentNode, getDTM, getExpression, getNextWalker, getPrevWalker, getRoot, init, nextNode, setDefaultDTM, setExpression, setNextWalker, setPrevWalker, wiMethods inherited from class org.apache.xpath.axes.PredicatedNodeTest
acceptNode, callPredicateVisitors, canTraverseOutsideSubtree, fixupVariables, getLocPathIterator, getPredicate, getPredicateCount, getPredicateIndex, getProximityPosition, getProximityPosition, initProximityPosition, resetProximityPositions, setLocPathIterator, setPredicateCountMethods inherited from class org.apache.xpath.patterns.NodeTest
debugWhatToShow, execute, execute, execute, getDefaultScore, getLocalName, getNamespace, getNodeTypeTest, getStaticScore, getWhatToShow, initNodeTest, initNodeTest, setLocalName, setNamespace, setStaticScore, setWhatToShowMethods inherited from class org.apache.xpath.Expression
asIterator, asIteratorRaw, asNode, assertion, bool, error, execute, executeCharsToContentHandler, exprAddChild, exprGetChild, exprGetNumChildren, exprGetParent, exprSetParent, getColumnNumber, getExpressionOwner, getLineNumber, getPublicId, getSystemId, isNodesetExpr, isStableNumber, num, warn, xstr
-
Method Details
-
setRoot
public void setRoot(int root) Set the root node of the TreeWalker. (Not part of the DOM2 TreeWalker interface).- Overrides:
setRootin classAxesWalker- Parameters:
root- The context node of this step.
-
detach
public void detach()Detaches the walker from the set which it iterated over, releasing any computational resources and placing the iterator in the INVALID state.- Overrides:
detachin classAxesWalker
-
isReverseAxes
public boolean isReverseAxes()Tells if this is a reverse axes. Overrides AxesWalker#isReverseAxes.- Overrides:
isReverseAxesin classPredicatedNodeTest- Returns:
- true for this class.
-
getLastPos
Get the number of nodes in this node list. The function is probably ill named?- Specified by:
getLastPosin interfaceSubContextList- Overrides:
getLastPosin classAxesWalker- Parameters:
xctxt- The XPath runtime context.- Returns:
- the number of nodes in this node list.
-
isDocOrdered
public boolean isDocOrdered()Returns true if all the nodes in the iteration well be returned in document order. Warning: This can only be called after setRoot has been called!- Overrides:
isDocOrderedin classAxesWalker- Returns:
- false.
-