public static final class Navigator.DescendantEnumeration extends Navigator.BaseEnumeration
current, positionGROUNDED, LAST_POSITION_FINDER, LOOKAHEAD| Constructor and Description |
|---|
DescendantEnumeration(NodeInfo start,
boolean includeSelf,
boolean forwards)
Create an iterator over the descendant or descendant-or-self axis
|
| Modifier and Type | Method and Description |
|---|---|
void |
advance()
The advance() method must be provided in each concrete implementation.
|
SequenceIterator |
getAnother()
Get another SequenceIterator that iterates over the same items as the original,
but which is repositioned at the start of the sequence.
|
nextatomize, close, current, getProperties, getStringValue, iterateAxis, moveNext, positionpublic DescendantEnumeration(NodeInfo start, boolean includeSelf, boolean forwards)
start - the initial context nodeincludeSelf - true if the "self" node is to be includedforwards - true for a forwards iteration, false for reverse orderpublic void advance()
Navigator.BaseEnumerationadvance in class Navigator.BaseEnumerationpublic SequenceIterator getAnother()
SequenceIteratorThis method allows access to all the items in the sequence without disturbing the current position of the iterator. Internally, its main use is in evaluating the last() function.
This method does not change the state of the iterator.
getAnother in interface SequenceIteratorgetAnother in interface UnfailingIteratorgetAnother in class Navigator.BaseEnumeration