public abstract class Filter<A> extends RestrictedTransform<A,A>
Subclasses should override the #isApplicable method.
| Modifier | Constructor and Description |
|---|---|
protected |
Filter(Pattern<? super A> body)
Creates a new pattern.
|
| Modifier and Type | Method and Description |
|---|---|
A |
apply(A target)
Transforms a target to be matched into a target for the
subpattern.
|
compileIsDomain, compileIsRange, compileMatch, compileMatchAgain, isDomain, isRange, match, matchAgaincompileApplybinds, clear, clone, compileClear, compileCut, cut, getBody, isDeterministic, preserves, preserves, setBody, toStringall, all, all, all, all, and, andThen, andThen, any, any, aside, both, clear, compareTo, compile, compileClear, compileCut, compileIsDeterministic, compileSubPattern, compileThis, compileUpTo, cut, DEBUG, either, enPassant, eq, eqNull, equal, filter, flatten, forInstancesOf, limit, main, matchOnce, matchVar, narrow, neq, neqNull, newAll, noMatch, none, or, orElse, orElse, repeat, some, some, some, some, someMatch, startCompile, test, transform, uniquely, variable, variablepublic A apply(A target)
The default implementations returns target.
apply in class Transform<A,A>target - the target for this pattern to be matched against.Unary.body to be matched against.see also the complete user documentation .