Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
net.sf.saxon.expr.FilterIterator
net.sf.saxon.expr.FilterIterator.Leading
public static final class FilterIterator.Leading
extends FilterIterator
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 | |
GROUNDED , LAST_POSITION_FINDER , LOOKAHEAD |
Constructor Summary | |
|
Method Summary | |
SequenceIterator |
|
protected Item |
|
protected boolean |
|
Methods inherited from class net.sf.saxon.expr.FilterIterator | |
current , getAnother , getNextMatchingItem , getProperties , matches , next , position |
public Leading(SequenceIterator base, Expression filter, XPathContext context)
Create a FilterIterate that terminates at the first item for which the predicate evaluates to false
- Parameters:
base
- iterator over the sequence to be filteredfilter
- the filter expression - always evaluated as a booleancontext
- the outer context for the filter expression as a whole; a new context will be created for evaluating the predicate
public SequenceIterator getAnother() throws XPathException
Get another iterator to return the same nodes
- Specified by:
- getAnother in interface SequenceIterator
- Overrides:
- getAnother in interface FilterIterator
protected Item getNextMatchingItem() throws XPathException
Get the next node that matches the filter predicate if there is one
- Overrides:
- getNextMatchingItem in interface FilterIterator
protected boolean matches() throws XPathException
Determine whether the context item matches the filter predicate
- Overrides:
- matches in interface FilterIterator