public class EmptyIterator extends java.lang.Object implements SequenceIterator, ReversibleIterator, LastPositionFinder, GroundedIterator, LookaheadIterator, UnfailingIterator, AtomizedValueIterator
SequenceIterator.Property| Modifier | Constructor and Description |
|---|---|
protected |
EmptyIterator()
Protected constructor
|
| Modifier and Type | Method and Description |
|---|---|
static EmptyIterator |
emptyIterator() |
static EmptyIterator |
getInstance()
Get an EmptyIterator, an iterator over an empty sequence.
|
int |
getLength()
Get the position of the last item in the sequence.
|
java.util.EnumSet<SequenceIterator.Property> |
getProperties()
Get properties of this iterator, as a bit-significant integer.
|
GroundedValue |
getResidue()
Return a GroundedValue containing all the remaining items in the sequence returned by this
SequenceIterator, starting at the current position.
|
EmptyIterator |
getReverseIterator()
Get another iterator over the same items, in reverse order.
|
boolean |
hasNext()
Determine whether there are more items to come.
|
GroundedValue |
materialize()
Return a Value containing all the items in the sequence returned by this
SequenceIterator.
|
Item |
next()
Get the next item.
|
AtomicSequence |
nextAtomizedValue()
Deliver the atomic value that is next in the atomized result
|
static <T extends AtomicValue> |
ofAtomic()
Static method to get an empty AtomicIterator
|
static AxisIterator |
ofNodes()
Static method to get an empty AxisIterator
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, toListclose, forEachOrFailpublic static EmptyIterator getInstance()
public static EmptyIterator emptyIterator()
public AtomicSequence nextAtomizedValue()
nextAtomizedValue in interface AtomizedValueIteratorpublic Item next()
next in interface SequenceIteratornext in interface UnfailingIteratorpublic int getLength()
getLength in interface LastPositionFinderpublic EmptyIterator getReverseIterator()
getReverseIterator in interface ReversibleIteratorpublic java.util.EnumSet<SequenceIterator.Property> getProperties()
getProperties in interface SequenceIteratorSequenceIterator.Property.GROUNDED, SequenceIterator.Property.LAST_POSITION_FINDER,
and SequenceIterator.Property.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.public GroundedValue materialize()
materialize in interface SequenceIteratormaterialize in interface GroundedIteratorpublic GroundedValue getResidue()
GroundedIteratorgetResidue in interface GroundedIteratorpublic boolean hasNext()
hasNext in interface LookaheadIteratorpublic static AxisIterator ofNodes()
public static <T extends AtomicValue> AtomicIterator<T> ofAtomic()
Copyright (c) 2004-2020 Saxonica Limited.