net.sf.saxon.expr
public class RangeIterator extends Object implements SequenceIterator, ReversibleIterator, LastPositionFinder, LookaheadIterator, GroundedIterator
Field Summary | |
---|---|
long | currentValue |
long | limit |
long | start |
Constructor Summary | |
---|---|
RangeIterator(long start, long end)
Create an iterator over a range of monotonically increasing integers |
Method Summary | |
---|---|
void | close() |
Item | current() |
SequenceIterator | getAnother() |
int | getLastPosition() |
int | getProperties()
Get properties of this iterator, as a bit-significant integer.
|
SequenceIterator | getReverseIterator() |
boolean | hasNext() |
GroundedValue | materialize()
Return a Value containing all the items in the sequence returned by this
SequenceIterator. |
Item | next() |
int | position() |
Parameters: start the first integer in the sequence end the last integer in the sequence. Must be >= start.
Returns: the properties of this iterator. This will be some combination of properties such as GROUNDED, LAST_POSITION_FINDER, and 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.
Returns: the corresponding Value