SequenceIteratorpublic static final class FilterIterator.Leading extends FilterIterator
FilterIterator.Leading, FilterIterator.NonNumericbase, filter, filterContextGROUNDED, LAST_POSITION_FINDER, LOOKAHEAD| Constructor | Description |
|---|---|
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 | 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, positionpublic 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 FilterIteratorXPathExceptionprotected Item getNextMatchingItem() throws XPathException
getNextMatchingItem in class FilterIteratorXPathExceptionpublic SequenceIterator getAnother() throws XPathException
getAnother in interface SequenceIteratorgetAnother in class FilterIteratorXPathException - if any error occurs