| org.apache.xpath.axes.PredicatedNodeTest org.apache.xpath.axes.AxesWalker org.apache.xpath.axes.ReverseAxesWalker
Method Summary | |
protected void | countProximityPosition(int i) Count backwards one proximity position. | 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. | public int | getLastPos(XPathContext xctxt) Get the number of nodes in this node list. | protected int | getNextNode() Get the next node in document order on the axes. | protected int | getProximityPosition(int predicateIndex) Get the current sub-context position. | public boolean | isDocOrdered() Returns true if all the nodes in the iteration well be returned in document
order. | public boolean | isReverseAxes() Tells if this is a reverse axes. | public void | setRoot(int root) Set the root node of the TreeWalker. |
m_iterator | protected DTMAxisIterator m_iterator(Code) | | The DTM inner traversal class, that corresponds to the super axis.
|
serialVersionUID | final static long serialVersionUID(Code) | | |
ReverseAxesWalker | ReverseAxesWalker(LocPathIterator locPathIterator, int axis)(Code) | | Construct an AxesWalker using a LocPathIterator.
Parameters: locPathIterator - The location path iterator that 'owns' this walker. |
countProximityPosition | protected void countProximityPosition(int i)(Code) | | Count backwards one proximity position.
Parameters: i - The predicate index. |
detach | public void detach()(Code) | | Detaches the walker from the set which it iterated over, releasing
any computational resources and placing the iterator in the INVALID
state.
|
getLastPos | public int getLastPos(XPathContext xctxt)(Code) | | Get the number of nodes in this node list. The function is probably ill
named?
Parameters: xctxt - The XPath runtime context. the number of nodes in this node list. |
getNextNode | protected int getNextNode()(Code) | | Get the next node in document order on the axes.
the next node in document order on the axes, or null. |
getProximityPosition | protected int getProximityPosition(int predicateIndex)(Code) | | Get the current sub-context position. In order to do the
reverse axes count, for the moment this re-searches the axes
up to the predicate. An optimization on this is to cache
the nodes searched, but, for the moment, this case is probably
rare enough that the added complexity isn't worth it.
Parameters: predicateIndex - The predicate index of the proximity position. The pridicate index, or -1. |
isDocOrdered | public boolean isDocOrdered()(Code) | | 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!
false. |
isReverseAxes | public boolean isReverseAxes()(Code) | | Tells if this is a reverse axes. Overrides AxesWalker#isReverseAxes.
true for this class. |
setRoot | public void setRoot(int root)(Code) | | Set the root node of the TreeWalker.
(Not part of the DOM2 TreeWalker interface).
Parameters: root - The context node of this step. |
|
|