| java.lang.Object net.sf.saxon.om.EmptyIterator
Method Summary | |
public Item | current() Get the current item, that is, the item returned by the most recent call of next().
the current item. | public SequenceIterator | getAnother() Get another iterator over the same items, positioned at the start. | public static EmptyIterator | getInstance() Get an EmptyIterator, an iterator over an empty sequence. | public int | getLastPosition() Get the position of the last item in the sequence. | public int | getProperties() Get properties of this iterator, as a bit-significant integer.
the properties of this iterator. | public SequenceIterator | getReverseIterator() Get another iterator over the same items, in reverse order. | public boolean | hasNext() Determine whether there are more items to come. | public Value | materialize() Return a Value containing all the items in the sequence returned by this
SequenceIterator. | public Item | next() Get the next item. | public int | position() Get the position of the current item.
the position of the current item. |
current | public Item current()(Code) | | Get the current item, that is, the item returned by the most recent call of next().
the current item. For the EmptyIterator this is always null. |
getAnother | public SequenceIterator getAnother()(Code) | | Get another iterator over the same items, positioned at the start.
another iterator over an empty sequence (in practice, itreturns the same iterator each time) |
getInstance | public static EmptyIterator getInstance()(Code) | | Get an EmptyIterator, an iterator over an empty sequence.
an EmptyIterator (in practice, this always returns the sameone) |
getLastPosition | public int getLastPosition()(Code) | | Get the position of the last item in the sequence.
the position of the last item in the sequence, always zero inthis implementation |
getProperties | public int getProperties()(Code) | | Get properties of this iterator, as a bit-significant integer.
the properties of this iterator. This will be some combination ofproperties such as GROUNDED, LAST_POSITION_FINDER,and LOOKAHEAD. It is alwaysacceptable 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. |
getReverseIterator | public SequenceIterator getReverseIterator()(Code) | | Get another iterator over the same items, in reverse order.
a reverse iterator over an empty sequence (in practice, itreturns the same iterator each time) |
hasNext | public boolean hasNext()(Code) | | Determine whether there are more items to come. Note that this operation
is stateless and it is not necessary (or usual) to call it before calling
next(). It is used only when there is an explicit need to tell if we
are at the last element.
true if there are more nodes |
materialize | public Value materialize()(Code) | | Return a Value containing all the items in the sequence returned by this
SequenceIterator. This should be an "in-memory" value, not a Closure.
the corresponding Value |
next | public Item next()(Code) | | Get the next item. This method should not be called unless hasNext() returns true.
the next item. For the EmptyIterator this is always null. |
position | public int position()(Code) | | Get the position of the current item.
the position of the current item. For the EmptyIterator this is always zero(whether or not the next() method has been called). |
|
|