Package eu.bandm.tools.ops
Class Pattern.Variable<A>
java.lang.Object
eu.bandm.tools.ops.Pattern<A>
eu.bandm.tools.ops.Pattern.Variable<A>
Pattern variable.
A pattern variable is deterministic, matches any object and bind itself.
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.bandm.tools.ops.Pattern
Pattern.Atomic<A>, Pattern.Binary<A,
B, C>, Pattern.Contravariant<A>, Pattern.Proxy, Pattern.Transform<A, B>, Pattern.Unary<A, B>, Pattern.Variable<A> -
Field Summary
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Variable
public Variable() -
Variable
-
-
Method Details
-
getValue
-
clear
public void clear() -
match
Description copied from class:Pattern
Attempt 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 pattern is activated on success, but deactivated on failure. -
bindsVariable
- Specified by:
bindsVariable
in classPattern<A>
-
disturbsVariable
- Specified by:
disturbsVariable
in classPattern<A>
-
savesVariable
- Specified by:
savesVariable
in classPattern<A>
-
isDeterministic
public boolean isDeterministic()- Specified by:
isDeterministic
in classPattern<A>
-
toString
-
bindings
-