public static final class FilterIterator.Leading extends FilterIterator
FilterIterator.Leading, FilterIterator.NonNumeric
base, filter, filterContext
ATOMIZABLE, GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD
Constructor and Description |
---|
Leading(SequenceIterator base,
Expression filter,
XPathContext context) |
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
|
current, getProperties, next, position, setFilterIsSingletonBoolean
public Leading(SequenceIterator base, Expression filter, XPathContext context)
protected 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