net.sf.saxon.sort

Class GroupEndingIterator

public class GroupEndingIterator extends Object implements GroupIterator, LookaheadIterator

A GroupEndingIterator iterates over a sequence of groups defined by xsl:for-each-group group-ending-with="x". The groups are returned in order of first appearance.
Constructor Summary
GroupEndingIterator(SequenceIterator population, Pattern endPattern, XPathContext context)
Method Summary
Itemcurrent()
SequenceIteratorgetAnother()
AtomicValuegetCurrentGroupingKey()
intgetProperties()
Get properties of this iterator, as a bit-significant integer.
booleanhasNext()
SequenceIteratoriterateCurrentGroup()
Itemnext()
intposition()

Constructor Detail

GroupEndingIterator

public GroupEndingIterator(SequenceIterator population, Pattern endPattern, XPathContext context)

Method Detail

current

public Item current()

getAnother

public SequenceIterator getAnother()

getCurrentGroupingKey

public AtomicValue getCurrentGroupingKey()

getProperties

public int getProperties()
Get properties of this iterator, as a bit-significant integer.

Returns: the properties of this iterator. This will be some combination of properties such as GROUNDED, LAST_POSITION_FINDER, and LOOKAHEAD. It is always acceptable to return the value zero, indicating that there are no known special properties. It is acceptable for the properties of the iterator to change depending on its state.

hasNext

public boolean hasNext()

iterateCurrentGroup

public SequenceIterator iterateCurrentGroup()

next

public Item next()

position

public int position()