Package net.sf.saxon.expr
Class FilterIterator.NonNumeric
java.lang.Object
net.sf.saxon.expr.FilterIterator
net.sf.saxon.expr.FilterIterator.NonNumeric
- All Implemented Interfaces:
Closeable
,AutoCloseable
,SequenceIterator
- Enclosing class:
FilterIterator
Subclass to handle the common special case where it is statically known
that the filter cannot return a numeric value
-
Nested Class Summary
Nested classes/interfaces inherited from class net.sf.saxon.expr.FilterIterator
FilterIterator.NonNumeric
-
Field Summary
Fields inherited from class net.sf.saxon.expr.FilterIterator
base, filter, filterContext
-
Constructor Summary
ConstructorsConstructorDescriptionNonNumeric
(SequenceIterator base, Expression filter, XPathContext context) Create a CompiledFilterIterator for the situation where it is known that the filter expression will never evaluate to a number value. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
matches()
Determine whether the context item matches the filter predicateMethods inherited from class net.sf.saxon.expr.FilterIterator
close, discharge, getNextMatchingItem, next, setSequence, testPredicateValue
-
Constructor Details
-
NonNumeric
Create a CompiledFilterIterator for the situation where it is known that the filter expression will never evaluate to a number value. For this case we can simply use the effective boolean value of the predicate- Parameters:
base
- iterator over the sequence to be filteredfilter
- the filter expressioncontext
- the current context (for evaluating the filter expression as a whole). A new context will be created to evaluate the predicate.
-
-
Method Details
-
matches
Determine whether the context item matches the filter predicate- Overrides:
matches
in classFilterIterator
- Returns:
- true if the context item matches
- Throws:
XPathException
- if an error occurs evaluating the match
-