| java.lang.Object net.sf.saxon.expr.FilterIterator
FilterIterator | public class FilterIterator implements SequenceIterator(Code) | | A FilterIterator filters an input sequence using a filter expression. Note that a FilterIterator
is not used where the filter is a constant number (PositionFilter is used for this purpose instead),
so this class does no optimizations for numeric predicates.
|
Inner Class :final public static class NonNumeric extends FilterIterator | |
FilterIterator | public FilterIterator(SequenceIterator base, Expression filter, XPathContext context)(Code) | | Constructor
Parameters: base - An iteration of the items to be filtered Parameters: filter - The expression defining the filter predicate Parameters: context - The context in which the expression is being evaluated |
getNextMatchingItem | protected Item getNextMatchingItem() throws XPathException(Code) | | Get the next node that matches the filter predicate if there is one,
or null if not.
|
getProperties | public int getProperties()(Code) | | Get properties of this iterator, as a bit-significant integer.
the properties of this iterator. This will be some combination ofproperties such as GROUNDED, LAST_POSITION_FINDER,and LOOKAHEAD. It is alwaysacceptable to return the value zero, indicating that there are no known special properties.It is acceptable for the properties of the iterator to change depending on its state. |
matches | protected boolean matches() throws XPathException(Code) | | Determine whether the context item matches the filter predicate
|
position | public int position()(Code) | | |
|
|