net.sf.saxon.om
public class EmptyIterator extends Object implements AxisIterator, ReversibleIterator, LastPositionFinder, GroundedIterator, LookaheadIterator
Method Summary | |
---|---|
Value | atomize()
Return the atomized value of the current node.
|
void | close() |
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. |
CharSequence | getStringValue()
Return the string value of the current node.
|
boolean | hasNext()
Determine whether there are more items to come. |
AxisIterator | iterateAxis(byte axis, NodeTest test)
Return an iterator over an axis, starting at the current node.
|
GroundedValue | materialize()
Return a Value containing all the items in the sequence returned by this
SequenceIterator. |
boolean | moveNext()
Move to the next node, without returning it. |
Item | next()
Get the next item. |
int | position()
Get the position of the current item. |
Returns: the atomized value.
Throws: NullPointerException if there is no current node
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 EmptyIterator, EmptyIterator, and EmptyIterator. 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: the string value, as an instance of CharSequence.
Throws: NullPointerException if there is no current node
Returns: true if there are more nodes
Parameters: axis the axis to iterate over, using a constant such as CHILD test a predicate to apply to the nodes before returning them.
Throws: NullPointerException if there is no current node
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).