public abstract static class Navigator.BaseEnumeration extends AxisIteratorImpl
BaseEnumeration takes responsibility for incrementing position when next() is called. The advance() method in a subclass should therefore not modify position.
current, position
GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD
Constructor and Description |
---|
BaseEnumeration() |
Modifier and Type | Method and Description |
---|---|
abstract void |
advance()
The advance() method must be provided in each concrete implementation.
|
abstract SequenceIterator |
getAnother()
Get another SequenceIterator that iterates over the same items as the original,
but which is repositioned at the start of the sequence.
|
Item |
next()
Get the next item in the sequence.
|
atomize, close, current, getProperties, getStringValue, iterateAxis, moveNext, position
public final Item next()
SequenceIterator
public abstract void advance()
public abstract SequenceIterator getAnother()
SequenceIterator
This 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.