|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.saxon.expr.PositionIterator
A PositionIterator selects a subsequence of a sequence
| Method Summary | |
Item |
current()
Get the current value in the sequence (the one returned by the most recent call on next()). |
SequenceIterator |
getAnother()
Get another iterator to return the same nodes |
boolean |
hasNext()
Test whether there are any more items available in the enumeration |
static SequenceIterator |
make(SequenceIterator base,
int min,
int max)
Static factory method. |
Item |
next()
Get the next item if there is one |
int |
position()
Get the current position. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static SequenceIterator make(SequenceIterator base,
int min,
int max)
throws XPathException
base - An iteration of the items to be filteredmin - The position of the first item to be included (base 1)max - The position of the last item to be included (base 1)
XPathExceptionpublic boolean hasNext()
hasNext in interface LookaheadIterator
public Item next()
throws XPathException
next in interface SequenceIteratorXPathException - if an error occurs retrieving the next itempublic Item current()
SequenceIterator
current in interface SequenceIteratorpublic int position()
SequenceIteratorThis method does not change the state of the iterator.
position in interface SequenceIterator
public SequenceIterator getAnother()
throws XPathException
getAnother in interface SequenceIteratorXPathException - if any error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||