Package net.sf.saxon.expr
Class FilterIterator.Leading
java.lang.Object
net.sf.saxon.expr.FilterIterator
net.sf.saxon.expr.FilterIterator.Leading
- All Implemented Interfaces:
SequenceIterator
- Enclosing class:
FilterIterator
Subclass to support the extension function saxon:leading, which terminates
the iteration at the first item whose predicate is false
-
Nested Class Summary
Nested classes/interfaces inherited from class net.sf.saxon.expr.FilterIterator
FilterIterator.Leading, FilterIterator.NonNumeric
-
Field Summary
Fields inherited from class net.sf.saxon.expr.FilterIterator
base, filter, filterContext
Fields inherited from interface net.sf.saxon.om.SequenceIterator
ATOMIZABLE, GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.sf.saxon.expr.FilterIterator
current, getProperties, next, position, setFilterIsSingletonBoolean
-
Constructor Details
-
Leading
-
-
Method Details
-
matches
Determine whether the context item matches the filter predicate- Overrides:
matches
in classFilterIterator
- Throws:
XPathException
-
getNextMatchingItem
Get the next node that matches the filter predicate if there is one- Overrides:
getNextMatchingItem
in classFilterIterator
- Throws:
XPathException
-
getAnother
Get another iterator to return the same nodes- Specified by:
getAnother
in interfaceSequenceIterator
- Overrides:
getAnother
in classFilterIterator
- Returns:
- a SequenceIterator that iterates over the same items, positioned before the first item
- Throws:
XPathException
- if any error occurs
-