Class ReverseAxesWalker
java.lang.Object
org.loboevolution.apache.xpath.Expression
org.loboevolution.apache.xpath.patterns.NodeTest
org.loboevolution.apache.xpath.axes.PredicatedNodeTest
org.loboevolution.apache.xpath.axes.AxesWalker
org.loboevolution.apache.xpath.axes.ReverseAxesWalker
- All Implemented Interfaces:
Cloneable
,SourceLocator
,PathComponent
,SubContextList
,ExpressionNode
,XPathVisitable
Walker for a reverse axes.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected DTMAxisIterator
The DTM inner traversal class, that corresponds to the super axis.Fields inherited from class org.loboevolution.apache.xpath.axes.AxesWalker
m_axis, m_nextWalker, m_traverser
Fields inherited from class org.loboevolution.apache.xpath.axes.PredicatedNodeTest
m_foundLast, m_lpi, m_predCount, m_proximityPositions
Fields inherited from class org.loboevolution.apache.xpath.patterns.NodeTest
m_name, m_whatToShow, SCORE_NODETEST, SCORE_NONE, SCORE_NSWILD, SCORE_OTHER, SCORE_QNAME, SHOW_BYFUNCTION, WILD
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
countProximityPosition
(int i) Count forward one proximity position.void
detach()
Detaches the walker from the set which it iterated over, releasing any computational resources and placing the iterator in the INVALID state.int
getLastPos
(XPathContext xctxt) Get the number of nodes in the node list, which, in the XSLT 1 based counting system, is the last index position.protected int
Get the next node in document order on the axes.protected int
getProximityPosition
(int predicateIndex) Get the current sub-context position.boolean
Tells if this is a reverse axes.void
setRoot
(int root) Set the root node of the TreeWalker.Methods inherited from class org.loboevolution.apache.xpath.axes.AxesWalker
callVisitors, clone, deepEquals, getAnalysisBits, getAxis, getDTM, getNextWalker, getRoot, init, nextNode, setNextWalker, setPrevWalker, wi
Methods inherited from class org.loboevolution.apache.xpath.axes.PredicatedNodeTest
acceptNode, callPredicateVisitors, canTraverseOutsideSubtree, getPredicate, getPredicateCount, getProximityPosition, getProximityPosition, initPredicateInfo, initProximityPosition, nodeToString, resetProximityPositions, setLocPathIterator, setPredicateCount
Methods inherited from class org.loboevolution.apache.xpath.patterns.NodeTest
calcScore, execute, execute, execute, getLocalName, getNamespace, getNodeTypeTest, getStaticScore, getWhatToShow, initNodeTest, initNodeTest, setLocalName, setNamespace, setStaticScore, setWhatToShow
Methods inherited from class org.loboevolution.apache.xpath.Expression
asIterator, asNode, assertion, bool, error, execute, exprGetParent, exprSetParent, getColumnNumber, getExpressionOwner, getLineNumber, getPublicId, getSystemId, isSameClass, isStableNumber, num
-
Field Details
-
m_iterator
The DTM inner traversal class, that corresponds to the super axis.
-
-
Method Details
-
setRoot
public void setRoot(int root) Set the root node of the TreeWalker. (Not part of the DOM2 TreeWalker interface).- Overrides:
setRoot
in 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:
detach
in classAxesWalker
-
getNextNode
protected int getNextNode()Get the next node in document order on the axes.- Overrides:
getNextNode
in classAxesWalker
- Returns:
- the next node in document order on the axes, or null.
-
isReverseAxes
public boolean isReverseAxes()Tells if this is a reverse axes.- Overrides:
isReverseAxes
in classPredicatedNodeTest
- Returns:
- false, unless a derived class overrides.
-
getProximityPosition
protected int getProximityPosition(int predicateIndex) Get the current sub-context position.- Overrides:
getProximityPosition
in classPredicatedNodeTest
- Parameters:
predicateIndex
- The index of the predicate where the proximity should be taken from.- Returns:
- The node position of this walker in the sub-context node list.
-
countProximityPosition
protected void countProximityPosition(int i) Count forward one proximity position.- Overrides:
countProximityPosition
in classPredicatedNodeTest
- Parameters:
i
- The index into the m_proximityPositions array, where the increment will occur.
-
getLastPos
Get the number of nodes in the node list, which, in the XSLT 1 based counting system, is the last index position.- Specified by:
getLastPos
in interfaceSubContextList
- Overrides:
getLastPos
in classAxesWalker
- Parameters:
xctxt
- The XPath runtime context.- Returns:
- the number of nodes in the node list.
-