| Modifier and Type | Field and Description |
|---|---|
| protected DTMAxisIterator | m_iterator
The DTM inner traversal class, that corresponds to the super axis. |
| pack-priv static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv | ReverseAxesWalker(LocPathIterator
The location path iterator that 'owns' this walker. locPathIterator, int axis)Construct an AxesWalker using a LocPathIterator. |
| Modifier and Type | Method and Description |
|---|---|
| protected void | countProximityPosition(int
The predicate index. i)Overrides com. Count backwards one proximity position. |
| public void | detach()
Overrides com. Detaches the walker from the set which it iterated over, releasing any computational resources and placing the iterator in the INVALID state. |
| public int | Returns: the number of nodes in this node list.The XPath runtime context. xctxt)Overrides com. Implements com. Get the number of nodes in this node list. |
| protected int | Returns: the next node in document order on the axes, or null.Overrides com. Get the next node in document order on the axes. |
| protected int | Returns: The pridicate index, or -1.The predicate index of the proximity position. predicateIndex)Overrides com. Get the current sub-context position. |
| public boolean | Returns: false.Overrides com. Returns true if all the nodes in the iteration well be returned in document order. |
| public boolean | Returns: true for this class.Overrides com. Tells if this is a reverse axes. |
| public void | setRoot(int
The context node of this step. root)Overrides com. Set the root node of the TreeWalker. |
| m_iterator | back to summary |
|---|---|
| protected DTMAxisIterator m_iterator The DTM inner traversal class, that corresponds to the super axis.
| |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID Hides com. | |
| ReverseAxesWalker | back to summary |
|---|---|
| pack-priv ReverseAxesWalker(LocPathIterator locPathIterator, int axis) Construct an AxesWalker using a LocPathIterator.
| |
| countProximityPosition | back to summary |
|---|---|
| protected void countProximityPosition(int i) Overrides com. Count backwards one proximity position.
| |
| detach | back to summary |
|---|---|
| public void detach() Overrides com. Detaches the walker from the set which it iterated over, releasing any computational resources and placing the iterator in the INVALID state. | |
| getLastPos | back to summary |
|---|---|
| public int getLastPos(XPathContext xctxt) Overrides com. Implements com. Get the number of nodes in this node list. The function is probably ill named?
| |
| getNextNode | back to summary |
|---|---|
| protected int getNextNode() Overrides com. Get the next node in document order on the axes.
| |
| getProximityPosition | back to summary |
|---|---|
| protected int getProximityPosition(int predicateIndex) Overrides com. 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.
| |
| isDocOrdered | back to summary |
|---|---|
| public boolean isDocOrdered() Overrides com. 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!
| |
| isReverseAxes | back to summary |
|---|---|
| public boolean isReverseAxes() Overrides com. Tells if this is a reverse axes. Overrides AxesWalker#isReverseAxes.
| |
| setRoot | back to summary |
|---|---|
| public void setRoot(int root) Overrides com. Set the root node of the TreeWalker. (Not part of the DOM2 TreeWalker interface).
| |