| java.lang.Object net.sf.saxon.om.ReverseArrayIterator
Constructor Summary | |
public | ReverseArrayIterator(Item[] items, int start, int end) Create an iterator a slice of an array
Parameters: items - The array of items Parameters: start - The first item in the array to be be used (this will be the lastone in the resulting iteration). |
ReverseArrayIterator | public ReverseArrayIterator(Item[] items, int start, int end)(Code) | | Create an iterator a slice of an array
Parameters: items - The array of items Parameters: start - The first item in the array to be be used (this will be the lastone in the resulting iteration). Zero-based. Parameters: end - The item after the last one in the array to be used (this will be thefirst one to be returned by the iterator). Zero-based. |
getLastPosition | public int getLastPosition()(Code) | | |
getProperties | public int getProperties()(Code) | | Get properties of this iterator, as a bit-significant integer.
the properties of this iterator. This will be some combination ofproperties such as GROUNDED, LAST_POSITION_FINDER,and LOOKAHEAD. It is alwaysacceptable 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. |
getReverseIterator | public SequenceIterator getReverseIterator()(Code) | | Get an iterator that processes the same items in reverse order.
Since this iterator is processing the items backwards, this method
returns an ArrayIterator that processes them forwards.
a new ArrayIterator |
hasNext | public boolean hasNext()(Code) | | Determine whether there are more items to come. Note that this operation
is stateless and it is not necessary (or usual) to call it before calling
next(). It is used only when there is an explicit need to tell if we
are at the last element.
true if there are more items in the sequence |
position | public int position()(Code) | | |
|
|