Package com.saxonica.ee.stream.feed
Class FilteringFeed.FilterLambda
- java.lang.Object
-
- com.saxonica.ee.stream.feed.FilteringFeed.FilterLambda
-
- All Implemented Interfaces:
FilteringFeed.Filter
- Enclosing class:
- FilteringFeed
public static class FilteringFeed.FilterLambda extends java.lang.Object implements FilteringFeed.Filter
An implementation of Filter that accepts lambda expressions (C# delegates)
-
-
Constructor Summary
Constructors Constructor Description FilterLambda(FilteringFeed.FilterDelegate delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilteringFeed.FilterResultmatches(Item item, int position)Test whether a given item, at a given position in the sequence, matches the filter
-
-
-
Constructor Detail
-
FilterLambda
public FilterLambda(FilteringFeed.FilterDelegate delegate)
-
-
Method Detail
-
matches
public FilteringFeed.FilterResult matches(Item item, int position) throws XPathException
Description copied from interface:FilteringFeed.FilterTest whether a given item, at a given position in the sequence, matches the filter- Specified by:
matchesin interfaceFilteringFeed.Filter- Parameters:
item- the item to be matchedposition- the 1-based position of the item in the sequence- Returns:
- MATCHES if the item is to be included in the result, SKIP if it is to be excluded; DONE if this and all future items are to be excluded
- Throws:
XPathException- if a dynamic error occurs
-
-