net.sf.saxon.expr

Class FilterIterator.NonNumeric

public static final class FilterIterator.NonNumeric extends FilterIterator

Subclass to handle the common special case where it is statically known that the filter cannot return a numeric value
Constructor Summary
NonNumeric(SequenceIterator base, Expression filter, XPathContext context)
Create a FilterIterator for the situation where it is known that the filter expression will never evaluate to a number value.
Method Summary
SequenceIteratorgetAnother()
Get another iterator to return the same nodes
protected booleanmatches()
Determine whether the context item matches the filter predicate

Constructor Detail

NonNumeric

public NonNumeric(SequenceIterator base, Expression filter, XPathContext context)
Create a FilterIterator 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 filtered filter the filter expression context the current context (for evaluating the filter expression as a whole). A new context will be created to evaluate the predicate.

Method Detail

getAnother

public SequenceIterator getAnother()
Get another iterator to return the same nodes

matches

protected boolean matches()
Determine whether the context item matches the filter predicate