net.sf.saxon.om
public class EmptyIterator extends Object implements AxisIterator, ReversibleIterator, LastPositionFinder, GroundedIterator, LookaheadIterator
Method Summary | |
---|---|
Item | current()
Get the current item, that is, the item returned by the most recent call of next(). |
SequenceIterator | getAnother()
Get another iterator over the same items, positioned at the start. |
static EmptyIterator | getInstance()
Get an EmptyIterator, an iterator over an empty sequence. |
int | getLastPosition()
Get the position of the last item in the sequence. |
int | getProperties()
Get properties of this iterator, as a bit-significant integer.
|
SequenceIterator | getReverseIterator()
Get another iterator over the same items, in reverse order. |
boolean | hasNext()
Determine whether there are more items to come. |
Value | materialize()
Return a Value containing all the items in the sequence returned by this
SequenceIterator. |
Item | next()
Get the next item. |
int | position()
Get the position of the current item. |
Returns: the current item. For the EmptyIterator this is always null.
Returns: another iterator over an empty sequence (in practice, it returns the same iterator each time)
Returns: an EmptyIterator (in practice, this always returns the same one)
Returns: the position of the last item in the sequence, always zero in this implementation
Returns: the properties of this iterator. This will be some combination of properties such as GROUNDED, LAST_POSITION_FINDER, and LOOKAHEAD. It is always acceptable to return the value zero, indicating that there are no known special properties. It is acceptable for the properties of the iterator to change depending on its state.
Returns: a reverse iterator over an empty sequence (in practice, it returns the same iterator each time)
Returns: true if there are more nodes
Returns: the corresponding Value
Returns: the next item. For the EmptyIterator this is always null.
Returns: the position of the current item. For the EmptyIterator this is always zero (whether or not the next() method has been called).