net.sf.saxon.om
public class ListIterator extends Object implements UnfailingIterator, LastPositionFinder, LookaheadIterator, GroundedIterator
Field Summary | |
---|---|
Item | current |
int | index |
int | length |
List | list |
Constructor Summary | |
---|---|
ListIterator(List list)
Create a ListIterator over a given List | |
ListIterator(List list, int length)
Create a ListIterator over the leading part of a given List |
Method Summary | |
---|---|
void | close() |
Item | current() |
SequenceIterator | getAnother() |
int | getLastPosition() |
int | getProperties()
Get properties of this iterator, as a bit-significant integer.
|
boolean | hasNext() |
GroundedValue | materialize()
Return a SequenceValue containing all the items in the sequence returned by this
SequenceIterator
|
Item | next() |
int | position() |
Parameters: list the list: all objects in the list must be instances of Item
Parameters: list the list: all objects in the list must be instances of Item length the number of items to be included
Returns: the properties of this iterator. This will be some combination of properties such as ListIterator, ListIterator, and ListIterator. 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 SequenceValue