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, supportsHasNext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCurrentGroupingKey, getSnapShot, iterateCurrentGroup
hasNext, supportsHasNext
close, discharge, next
public GroupEndingIterator(Expression select, Pattern endPattern, XPathContext context) throws XPathException
XPathException
public boolean supportsGetLength()
LastPositionFinder
LastPositionFinder.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 LastPositionFinder
LastPositionFinder.getLength()
method can be called to determine the length
of the underlying sequence.public int getLength()
LastPositionFinder
LastPositionFinder.supportsGetLength()
has been called
and has returned true.getLength
in interface LastPositionFinder
protected void advance() throws XPathException
advance
in class GroupMatchingIterator
XPathException
Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.