net.sf.saxon.expr

Class FilterIterator.Leading

public static final class FilterIterator.Leading extends FilterIterator

Subclass to support the extension function saxon:leading, which terminates the iteration at the first item whose predicate is false
Constructor Summary
Leading(SequenceIterator base, Expression filter, XPathContext context)
Method Summary
SequenceIteratorgetAnother()
Get another iterator to return the same nodes
protected ItemgetNextMatchingItem()
Get the next node that matches the filter predicate if there is one
protected booleanmatches()
Determine whether the context item matches the filter predicate

Constructor Detail

Leading

public Leading(SequenceIterator base, Expression filter, XPathContext context)

Method Detail

getAnother

public SequenceIterator getAnother()
Get another iterator to return the same nodes

getNextMatchingItem

protected Item getNextMatchingItem()
Get the next node that matches the filter predicate if there is one

matches

protected boolean matches()
Determine whether the context item matches the filter predicate