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, waitclose, forEachOrFailpublic 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
SequenceIteratornext in interface SequenceIteratorXPathException - if an error occurs retrieving the next itempublic boolean hasNext()
LookaheadIteratorThis method must not be called unless the result of getProperties() on the iterator
includes the property SequenceIterator.Property.LOOKAHEAD
hasNext in interface LookaheadIteratorpublic GroundedValue materialize()
materialize in interface SequenceIteratormaterialize in interface GroundedIteratorpublic GroundedValue getResidue()
GroundedIteratorgetResidue in interface GroundedIteratorpublic 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.Copyright (c) 2004-2021 Saxonica Limited. All rights reserved.