Package eu.bandm.tools.paisley
Class Transform<A,B>
java.lang.Object
eu.bandm.tools.paisley.Pattern<A>
eu.bandm.tools.paisley.Unary<B,A>
eu.bandm.tools.paisley.Transform<A,B>
- Type Parameters:
A- the target type of the containing patternB- the target type of the contained subpattern
- All Implemented Interfaces:
Serializable,Cloneable
- Direct Known Subclasses:
RestrictedTransform,TotalTransform
Abstract base class for patterns that delegate transformed targets
to a subpattern.
Subclasses must implement the apply(A) and
{--- SONARBT GIPS NICHT : link Pattern#isApplicable} methods.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.bandm.tools.paisley.Pattern
Pattern.Either<A> -
Field Summary
Fields inherited from class eu.bandm.tools.paisley.Pattern
_left_matched, _target_save, none -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract BTransforms a target to be matched into a target for the subpattern.protected voidcompileApply(CompilationContext context) Methods inherited from class eu.bandm.tools.paisley.Unary
binds, clear, clone, compileClear, compileCut, cut, getBody, isDeterministic, matchAgain, preserves, preserves, setBody, toStringMethods inherited from class eu.bandm.tools.paisley.Pattern
all, all, all, all, all, and, andThen, andThen, any, aside, both, clear, compile, compileClear, compileCut, compileIsDeterministic, compileMatch, compileMatchAgain, compileSubPattern, compileThis, compileUpTo, cut, DEBUG, either, enPassant, flatten, limit, main, match, matchOnce, matchVar, narrow, newAll, noMatch, none, of, once, or, orElse, orElse, repeat, some, some, some, some, someMatch, startCompile, uniquely, variable, variable
-
Constructor Details
-
Transform
Creates a new pattern.
-
-
Method Details
-
apply
Transforms a target to be matched into a target for the subpattern.- Parameters:
target- the target for this pattern to be matched against.- Returns:
- a target for
Unary.bodyto be matched against.
-
compileApply
-