public class ValueTailIterator extends java.lang.Object implements SequenceIterator, GroundedIterator, LookaheadIterator
SequenceIterator.Property
Constructor and Description |
---|
ValueTailIterator(GroundedValue base,
int start)
Construct a ValueTailIterator
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 in the sequence.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, forEachOrFail
public ValueTailIterator(GroundedValue base, int start)
base
- The items to be filteredstart
- The position of the first item to be included (zero-based)public Item next() throws XPathException
SequenceIterator
next
in interface SequenceIterator
XPathException
- if an error occurs retrieving the next itempublic boolean hasNext()
LookaheadIterator
This method must not be called unless the result of getProperties() on the iterator
includes the property SequenceIterator.Property.LOOKAHEAD
hasNext
in interface LookaheadIterator
public GroundedValue materialize()
materialize
in interface SequenceIterator
materialize
in interface GroundedIterator
public GroundedValue getResidue()
GroundedIterator
getResidue
in interface GroundedIterator
public java.util.EnumSet<SequenceIterator.Property> getProperties()
getProperties
in interface SequenceIterator
SequenceIterator.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.Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.