public class GroupEndingIterator extends GroupMatchingIterator implements GroupIterator, LookaheadIterator
baseContext, current, currentMembers, nextItem, pattern, population, position, runningContext, select| Constructor and Description |
|---|
GroupEndingIterator(Expression select,
Pattern endPattern,
XPathContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
advance() |
int |
getLength()
Get the last position (that is, the number of items in the sequence).
|
boolean |
supportsGetLength()
Ask whether this iterator supports use of the
LastPositionFinder.getLength() method. |
close, discharge, getCurrentGroupingKey, getSnapShot, hasNext, iterateCurrentGroup, next, supportsHasNextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCurrentGroupingKey, getSnapShot, iterateCurrentGrouphasNext, supportsHasNextclose, discharge, nextpublic GroupEndingIterator(Expression select, Pattern endPattern, XPathContext context) throws XPathException
XPathExceptionpublic boolean supportsGetLength()
LastPositionFinderLastPositionFinder.getLength() method. This
method should always be called before calling LastPositionFinder.getLength(), because an iterator
that implements this interface may support use of LastPositionFinder.getLength() in some situations
and not in otherssupportsGetLength in interface LastPositionFinderLastPositionFinder.getLength() method can be called to determine the length
of the underlying sequence.public int getLength()
LastPositionFinderLastPositionFinder.supportsGetLength() has been called
and has returned true.getLength in interface LastPositionFinderprotected void advance()
throws XPathException
advance in class GroupMatchingIteratorXPathExceptionCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.