public static final class FilterIterator.Leading extends FilterIterator
FilterIterator.Leading, FilterIterator.NonNumeric
base, filter, filterContext
GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD
?????? |
---|
Leading(SequenceIterator base,
Expression filter,
XPathContext context)
Create a FilterIterate that terminates at the first item for which the predicate
evaluates to false
|
?????? | ????? |
---|---|
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 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
??? FilterIterator
XPathException
protected Item getNextMatchingItem() throws XPathException
getNextMatchingItem
??? FilterIterator
XPathException
public SequenceIterator getAnother() throws XPathException
getAnother
???? SequenceIterator
getAnother
??? FilterIterator
XPathException
- if any error occurs