public class CompiledProxy<A> extends CompiledUnary<A,A>
Modifier | Constructor and Description |
---|---|
protected |
CompiledProxy() |
protected |
CompiledProxy(Pattern<? super A> body) |
Modifier and Type | Method and Description |
---|---|
protected <V,L> void |
compileMatch(<any> context) |
protected <V,L> void |
compileMatchAgain(<any> context) |
boolean |
match(A target)
Attempts to match this pattern against a given object.
|
compileClear, compileCut, compileInitializer
binds, clear, clone, compileClear, compileCut, cut, getBody, isDeterministic, matchAgain, preserves, preserves, setBody, toString
all, all, all, all, all, and, andThen, andThen, any, any, aside, both, clear, compareTo, compile, compileClear, compileCut, compileIsDeterministic, compileMatch, compileMatchAgain, 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, variable
public boolean match(A target)
The default implementation delegates to body
.
match
in class Pattern<A>
target
- the object to match againsttrue
if the matching is successful, false
if it fails. Which Variable
s are bound by a
successful or failed match depends.Pattern.binds(Variable)
,
Pattern.preserves(Variable, boolean)
protected <V,L> void compileMatch(<any> context)
compileMatch
in class CompiledUnary<A,A>
protected <V,L> void compileMatchAgain(<any> context)
compileMatchAgain
in class CompiledUnary<A,A>
see also the complete user documentation .