public class GroupStartingIterator extends GroupMatchingIterator implements LookaheadIterator, GroupIterator
baseContext, current, currentMembers, next, pattern, population, position, runningContext
GROUNDED, 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, getSnapShot, hasCurrentGroup, hasCurrentGroupingKey, hasNext, iterateCurrentGroup, next, position, setGroupSlot, setKeySlot
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasNext
getCurrentGroupingKey, getSnapShot, hasCurrentGroup, hasCurrentGroupingKey, iterateCurrentGroup, setGroupSlot, setKeySlot
close, current, getProperties, next, position
public GroupStartingIterator(SequenceIterator population, Pattern startPattern, 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.
Some implementations of this method may regenerate the input sequence, creating new nodes with different identity from the original. This is not recommended, but is hard to prevent. This causes no problem for the primary usage of this method to support the last() function, but it has been known to cause trouble in other situations.
getAnother
in interface SequenceIterator
XPathException
- if any error occursCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.