public class GroupStartingIterator extends GroupMatchingIterator implements LookaheadIterator, GroupIterator
baseContext, current, currentMembers, next, pattern, population, position, runningContextGROUNDED, LAST_POSITION_FINDER, LOOKAHEAD| Constructor and Description |
|---|
GroupStartingIterator(SequenceIterator population,
Pattern startPattern,
XPathContext context) |
| Modifier and Type | Method and 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.
|
close, current, getCurrentGroupingKey, getProperties, hasNext, iterateCurrentGroup, next, positionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasNextgetCurrentGroupingKey, iterateCurrentGroupclose, current, getProperties, next, positionpublic GroupStartingIterator(SequenceIterator population, Pattern startPattern, XPathContext context) throws XPathException
XPathExceptionprotected void advance()
throws XPathException
advance in class GroupMatchingIteratorXPathExceptionpublic SequenceIterator getAnother() throws XPathException
SequenceIteratorThis 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 SequenceIteratorXPathException - if any error occurs