public class ValueTailIterator<T extends Item<?>> extends java.lang.Object implements SequenceIterator<T>, GroundedIterator<T>, LookaheadIterator<T>
ATOMIZING, GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD
Constructor and Description |
---|
ValueTailIterator(GroundedValue<T> base,
int start)
Construct a ValueTailIterator
|
Modifier and Type | Method and Description |
---|---|
int |
getProperties()
Get properties of this iterator, as a bit-significant integer.
|
GroundedValue<T> |
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<T> |
materialize()
Return a Value containing all the items in the sequence returned by this
SequenceIterator.
|
T |
next()
Get the next item in the sequence.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, forEachOrFail
public ValueTailIterator(GroundedValue<T> base, int start)
base
- The items to be filteredstart
- The position of the first item to be included (zero-based)public T next() throws XPathException
SequenceIterator
next
in interface SequenceIterator<T extends Item<?>>
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 bit setting SequenceIterator.LOOKAHEAD
hasNext
in interface LookaheadIterator<T extends Item<?>>
public GroundedValue<T> materialize()
materialize
in interface SequenceIterator<T extends Item<?>>
materialize
in interface GroundedIterator<T extends Item<?>>
public GroundedValue<T> getResidue()
GroundedIterator
getResidue
in interface GroundedIterator<T extends Item<?>>
public int getProperties()
getProperties
in interface SequenceIterator<T extends Item<?>>
SequenceIterator.GROUNDED
, SequenceIterator.LAST_POSITION_FINDER
,
and SequenceIterator.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-2020 Saxonica Limited. All rights reserved.