Class FilterIterator.Leading

  • All Implemented Interfaces:
    SequenceIterator
    Enclosing class:
    FilterIterator

    public static final class FilterIterator.Leading
    extends FilterIterator
    Subclass to support the extension function saxon:leading, which terminates the iteration at the first item whose predicate is false
    • Constructor Detail

      • Leading

        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 filtered
        filter - the filter expression - always evaluated as a boolean
        context - the outer context for the filter expression as a whole; a new context will be created for evaluating the predicate