GroupIterator
, SequenceIterator
, LookaheadIterator
public class GroupEndingIterator extends GroupMatchingIterator implements GroupIterator, LookaheadIterator
baseContext, current, currentMembers, next, pattern, population, position, runningContext
GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD
Constructor | Description |
---|---|
GroupEndingIterator(SequenceIterator population,
Pattern endPattern,
XPathContext context) |
Modifier and Type | Method | Description |
---|---|---|
protected void |
advance() |
|
SequenceIterator |
getAnother() |
Get another SequenceIterator that iterates over the same items as the original,
but which is repositioned at the start of the sequence.
|
getCurrentGroupingKey, iterateCurrentGroup
close, current, getCurrentGroupingKey, getProperties, hasNext, iterateCurrentGroup, next, position
hasNext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, current, getProperties, next, position
public GroupEndingIterator(SequenceIterator population, Pattern endPattern, XPathContext context) throws XPathException
XPathException
protected void advance() throws XPathException
advance
in class GroupMatchingIterator
XPathException
public SequenceIterator getAnother() throws XPathException
SequenceIterator
This method allows access to all the items in the sequence without disturbing the current position of the iterator. Internally, its main use is in evaluating the last() function.
This method does not change the state of the iterator.
getAnother
in interface SequenceIterator
XPathException
- if any error occurs