AxisIterator
, SequenceIterator
, UnfailingIterator
public static final class Navigator.DescendantEnumeration extends Navigator.BaseEnumeration
current, position
GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD
Constructor | Description |
---|---|
DescendantEnumeration(NodeInfo start,
boolean includeSelf,
boolean forwards) |
Create an iterator over the descendant or descendant-or-self axis
|
Modifier and Type | Method | Description |
---|---|---|
void |
advance() |
The advance() method must be provided in each concrete implementation.
|
SequenceIterator |
getAnother() |
Get another iterator over the same sequence of items, positioned at the
start of the sequence.
|
atomize, close, current, getProperties, getStringValue, iterateAxis, moveNext, position
next
public 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.BaseEnumeration
advance
in class Navigator.BaseEnumeration
public SequenceIterator getAnother()
UnfailingIterator
getAnother
in interface SequenceIterator
getAnother
in interface UnfailingIterator
getAnother
in class Navigator.BaseEnumeration