public class DTMDefaultBaseIterators.DescendantIterator extends DTMDefaultBaseIterators.InternalAxisIteratorBase
_currentNode_includeSelf, _isRestartable, _position, _startNodeEND| Constructor and Description |
|---|
DescendantIterator() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isDescendant(int identity)
Tell if this node identity is a descendant.
|
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.
|
cloneIterator, includeSelf, isReverse, resetPosition, returnNodepublic void setStartNode(int node)
node - Sets the root of the iteration.protected boolean isDescendant(int identity)
This one-sided test works only if the parent has been previously tested and is known to be a descendent. It fails if the parent is the _startNode's next sibling, or indeed any node that follows _startNode in document order. That may suffice for this iterator, but it's not really an isDescendent() test. %REVIEW% rename?
identity - The index number of the node in question.public int next()
public void reset()
reset in interface DTMAxisIteratorreset in class DTMAxisIteratorBaseCopyright © 2022. All rights reserved.