| net.sf.saxon.om.AxisIterator
All known Subclasses: net.sf.saxon.tree.TreeEnumeration, net.sf.saxon.om.AxisIteratorImpl, net.sf.saxon.om.NamespaceIterator, net.sf.saxon.om.SingletonIterator, net.sf.saxon.om.PrependIterator, net.sf.saxon.om.ListIterator, net.sf.saxon.om.ReverseArrayIterator, net.sf.saxon.om.ArrayIterator, net.sf.saxon.om.EmptyIterator,
AxisIterator | public interface AxisIterator extends SequenceIterator(Code) | | A SequenceIterator is used to iterate over a sequence. An AxisIterator
is a SequenceIterator that throws no exceptions.
Despite its name, an AxisIterator is not invariably used to find nodes
on an axis of a tree, though this is its most common use. For example, the
class ArrayIterator is also defined as an AxisIterator.
|
Method Summary | |
public Item | current() Get the current item in the sequence. | public SequenceIterator | getAnother() Get another iterator over the same sequence of items, positioned at the
start of the sequence. | public Item | next() Get the next item in the sequence. | public int | position() |
current | public Item current()(Code) | | Get the current item in the sequence.
the current item, that is, the item most recently returned bynext() |
getAnother | public SequenceIterator getAnother()(Code) | | Get another iterator over the same sequence of items, positioned at the
start of the sequence. It must be possible to call this method at any time, whether
none, some, or all of the items in the original iterator have been read. The method
is non-destructive: it does not change the state of the original iterator.
a new iterator over the same sequence |
next | public Item next()(Code) | | Get the next item in the sequence.
the next Item. If there are no more nodes, return null. |
position | public int position()(Code) | | Get the current position
the position of the current item (the item most recentlyreturned by next()), starting at 1 for the first node |
|
|