public abstract class TotalTransform<A,B> extends Transform<A,B>
| Modifier | Constructor and Description |
|---|---|
protected |
TotalTransform(Pattern<? super B> body)
Creates a new pattern.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
compileMatch(eu.bandm.tools.paisley.CompilationContext context) |
protected void |
compileMatchAgain(eu.bandm.tools.paisley.CompilationContext context) |
boolean |
match(A target)
Attempts to match this pattern against a given object.
|
apply, compileApplybinds, clear, clone, compileClear, compileCut, cut, getBody, isDeterministic, matchAgain, 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 boolean match(A target)
Patternmatch in class Pattern<A>target - the object to match againsttrue if the matching is successful, false if it fails. Which Variables are bound by a
successful or failed match depends.Pattern.binds(Variable),
Pattern.preserves(Variable, boolean)protected void compileMatch(eu.bandm.tools.paisley.CompilationContext context)
compileMatch in class Pattern<A>protected void compileMatchAgain(eu.bandm.tools.paisley.CompilationContext context)
compileMatchAgain in class Pattern<A>see also the complete user documentation .