public static class Navigator.AxisFilter extends AxisIteratorImpl
current, position
GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD
Constructor and Description |
---|
Navigator.AxisFilter(AxisIterator base,
NodeTest test)
S
Construct a AxisFilter
|
Modifier and Type | Method and Description |
---|---|
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 Navigator.AxisFilter(AxisIterator base, NodeTest test)
base
- the underlying iterator that returns all the nodes on
a required axis. This must not be an atomizing iterator!test
- a NodeTest that is applied to each node returned by the
underlying AxisIterator; only those nodes that pass the NodeTest are
returned by the AxisFilterpublic Item next()
SequenceIterator
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.