net.sf.saxon.om
public class ReverseArrayIterator extends Object implements UnfailingIterator, ReversibleIterator, LookaheadIterator, LastPositionFinder
Field Summary | |
---|---|
Item | current |
int | end |
int | index |
Item[] | items |
int | start |
Constructor Summary | |
---|---|
ReverseArrayIterator(Item[] items, int start, int end)
Create an iterator a slice of an array |
Method Summary | |
---|---|
void | close() |
Item | current() |
SequenceIterator | getAnother() |
int | getLastPosition() |
int | getProperties()
Get properties of this iterator, as a bit-significant integer.
|
SequenceIterator | getReverseIterator()
Get an iterator that processes the same items in reverse order.
|
boolean | hasNext()
Determine whether there are more items to come. |
Item | next() |
int | position() |
Parameters: items The array of items start The first item in the array to be be used (this will be the last one in the resulting iteration). Zero-based. end The item after the last one in the array to be used (this will be the first one to be returned by the iterator). Zero-based.
Returns: the properties of this iterator. This will be some combination of properties such as ReverseArrayIterator, ReverseArrayIterator, and ReverseArrayIterator. 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: a new ArrayIterator
Returns: true if there are more items in the sequence