net.sf.saxon.expr
public static final class FilterIterator.Leading extends FilterIterator
FilterIterator.Leading, FilterIterator.NonNumeric
base, filter, filterContext
GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD
Constructor and Description |
---|
FilterIterator.Leading(SequenceIterator base,
Expression filter,
XPathContext context)
Create a FilterIterate that terminates at the first item for which the predicate
evaluates to false
|
Modifier and Type | Method and Description |
---|---|
SequenceIterator |
getAnother()
Get another iterator to return the same nodes
|
protected Item |
getNextMatchingItem()
Get the next node that matches the filter predicate if there is one
|
protected boolean |
matches()
Determine whether the context item matches the filter predicate
|
close, current, getProperties, next, position
public FilterIterator.Leading(SequenceIterator base, Expression filter, XPathContext context)
base
- iterator over the sequence to be filteredfilter
- the filter expression - always evaluated as a booleancontext
- the outer context for the filter expression as a whole; a new
context will be created for evaluating the predicateprotected boolean matches() throws XPathException
matches
in class FilterIterator
XPathException
protected Item getNextMatchingItem() throws XPathException
getNextMatchingItem
in class FilterIterator
XPathException
public SequenceIterator getAnother() throws XPathException
getAnother
in interface SequenceIterator
getAnother
in class FilterIterator
XPathException
- if any error occurs