Package eu.bandm.tools.paisley
Class Transform<A,B>
java.lang.Object
eu.bandm.tools.paisley.AbstractPattern<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:
Pattern<A>,Serializable,Cloneable
- Direct Known Subclasses:
RestrictedTransform,TotalTransform
@Generated(generator="eu.bandm.tools.expander",
version="",
timestamp="2026-01-12T17:56:31")
public abstract class Transform<A,B>
extends Unary<B,A>
Abstract base class for patterns that delegate transformed targets to a
subpattern.
Subclasses must implement the Pattern.match(A) and the apply(A)
method.
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class eu.bandm.tools.paisley.Unary
binds, clear, cut, fork, getBody, isDeterministic, matchAgain, preserves, preserves, setBodyMethods inherited from class eu.bandm.tools.paisley.AbstractPattern
clone, doclone
-
Constructor Details
-
Transform
Creates a new instance.- Parameters:
body- the subpattern
-
-
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.
-