net.sf.saxon.expr
Class FilterIterator.NonNumeric
java.lang.Object
net.sf.saxon.expr.FilterIterator
net.sf.saxon.expr.FilterIterator.NonNumeric
- All Implemented Interfaces:
- SequenceIterator
- Enclosing class:
- FilterIterator
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
FilterIterator.NonNumeric
public FilterIterator.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 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.
getAnother
public SequenceIterator getAnother()
throws XPathException
- Get another iterator to return the same nodes
- Specified by:
getAnother
in interface SequenceIterator
- Overrides:
getAnother
in class FilterIterator
- Returns:
- a SequenceIterator that iterates over the same items,
positioned before the first item
- Throws:
XPathException
- if any error occurs
Copyright (C) Michael H. Kay. All rights reserved.