net.sf.saxon.om
public static final class Navigator.AncestorEnumeration extends Navigator.BaseEnumeration
current, position
GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD
Constructor and Description |
---|
Navigator.AncestorEnumeration(NodeInfo start,
boolean includeSelf)
Create an iterator over the ancestor or ancestor-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.
|
next
atomize, close, current, getProperties, getStringValue, iterateAxis, moveNext, position
public Navigator.AncestorEnumeration(NodeInfo start, boolean includeSelf)
start
- the initial context nodeincludeSelf
- true if the "self" node is to be includedpublic void advance()
Navigator.BaseEnumeration
advance
in class Navigator.BaseEnumeration
public 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.
getAnother
in interface SequenceIterator
getAnother
in interface UnfailingIterator
getAnother
in class Navigator.BaseEnumeration