Package eu.bandm.tools.ops
Class Pattern.Proxy
java.lang.Object
eu.bandm.tools.ops.Pattern<A>
eu.bandm.tools.ops.Pattern.Contravariant<B>
eu.bandm.tools.ops.Pattern.Unary<A,A>
eu.bandm.tools.ops.Pattern.Proxy
-
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
Fields inherited from class eu.bandm.tools.ops.Pattern.Unary
body
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Attempt to match this pattern against a given object.boolean
Attempt to re-match this pattern against a previously matched object.Methods inherited from class eu.bandm.tools.ops.Pattern.Unary
bindsVariable, clear, cut, disturbsVariable, isDeterministic, savesVariable
Methods inherited from class eu.bandm.tools.ops.Pattern.Contravariant
narrow
-
Constructor Details
-
Proxy
protected Proxy()
-
-
Method Details
-
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. -
matchAgain
public boolean matchAgain()Description copied from class:Pattern
Attempt to re-match this pattern against a previously matched object. If the class of this pattern imposes a specific order on matches, they are chosen in that order, beginning with the second one. The pattern is activated on success, but deactivated on failure. The behaviour of this method is unspecified if the pattern is currently deactivated.Patterns classes that do not overwrite this method guarantee
- Overrides:
matchAgain
in classPattern<A>
-