Package eu.bandm.tools.paisley
Class Proxy<A>
java.lang.Object
eu.bandm.tools.paisley.AbstractPattern<A>
eu.bandm.tools.paisley.Unary<A,A>
eu.bandm.tools.paisley.Proxy<A>
- Type Parameters:
A- the target type
- All Implemented Interfaces:
Pattern<A>,Serializable,Cloneable
@Generated(generator="eu.bandm.tools.expander",
version="",
timestamp="2026-01-12T17:56:31")
public class Proxy<A>
extends Unary<A,A>
Base class for patterns that contain one subpattern of the same target type.
Methods have default implementations that delegate to the
subpattern.
Subclasses may override methods to add behaviour.
- 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
-
Proxy
Creates a new pattern.- Parameters:
body- the subpattern
-
Proxy
protected Proxy()Creates a new pattern without a subpattern.
-
-
Method Details
-
match
Attempts to match this pattern against a given object.If the class of this pattern imposes a specific order on matches, the first one is chosen.
The
nulltarget is generally allowed.The default implementation delegates to
body.- Parameters:
target- the object to match against- Returns:
trueif the matching is successful,falseif it fails. WhichVariables are bound by a successful or failed match depends.- See Also:
-