public class DTMDefaultBaseIterators.PrecedingIterator extends DTMDefaultBaseIterators.InternalAxisIteratorBase
| Modifier and Type | Field and Description |
|---|---|
protected int |
_oldsp
(not sure yet...
|
protected int |
_sp
(not sure yet...
|
protected int[] |
_stack
The stack of start node + ancestors up to the root of the tree, which we must avoid.
|
_currentNode_includeSelf, _isRestartable, _position, _startNodeEND| Constructor and Description |
|---|
PrecedingIterator() |
| Modifier and Type | Method and Description |
|---|---|
DTMAxisIterator |
cloneIterator()
Returns a deep copy of this iterator.
|
boolean |
isReverse() |
int |
next()
Get the next node in the iteration.
|
void |
reset()
Resets the iterator to the last start node.
|
void |
setStartNode(int node)
Set start to END should 'close' the iterator, i.e.
|
includeSelf, resetPosition, returnNodeprotected int[] _stack
protected int _sp
protected int _oldsp
public boolean isReverse()
isReverse in interface DTMAxisIteratorisReverse in class DTMAxisIteratorBasepublic DTMAxisIterator cloneIterator()
cloneIterator in interface DTMAxisIteratorcloneIterator in class DTMAxisIteratorBasepublic void setStartNode(int node)
node - Sets the root of the iteration.public int next()
public void reset()
reset in interface DTMAxisIteratorreset in class DTMAxisIteratorBaseCopyright © 2022. All rights reserved.