Package eu.bandm.tools.ops
Class Pattern.Transform<A,B> 
java.lang.Object
eu.bandm.tools.ops.Pattern<A>
eu.bandm.tools.ops.Pattern.Contravariant<B>
eu.bandm.tools.ops.Pattern.Unary<B,A>
 
eu.bandm.tools.ops.Pattern.Transform<A,B> 
- All Implemented Interfaces:
- Function<A,- B> 
public abstract static class Pattern.Transform<A,B> 
extends Pattern.Unary<B,A>
implements Function<A,B>  
- 
Nested Class SummaryNested classes/interfaces inherited from class eu.bandm.tools.ops.PatternPattern.Atomic<A>, Pattern.Binary<A,B, C>, Pattern.Contravariant<A>, Pattern.Proxy, Pattern.Transform<A, B>, Pattern.Unary<A, B>, Pattern.Variable<A> 
- 
Field SummaryFields inherited from class eu.bandm.tools.ops.Pattern.Unarybody
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanisApplicable(A x) booleanAttempt to match this pattern against a given object.booleanAttempt to re-match this pattern against a previously matched object.Methods inherited from class eu.bandm.tools.ops.Pattern.UnarybindsVariable, clear, cut, disturbsVariable, isDeterministic, savesVariableMethods inherited from class eu.bandm.tools.ops.Pattern.ContravariantnarrowMethods inherited from class eu.bandm.tools.ops.Patternand, any, both, either, eq, first, forInstancesOf, limit, matchOnce, none, or, p_null, somewhere, transform, uniquely, variable, variable
- 
Constructor Details- 
Transform
 
- 
- 
Method Details- 
matchDescription copied from class:PatternAttempt 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.- Specified by:
- matchin class- Pattern<A>
- Returns:
- trueif the matching is successful,- falseif it fails. Which- Pattern.Variables are bound by a successful match is class-specific.
 
- 
matchAgainpublic boolean matchAgain()Description copied from class:PatternAttempt 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:
- matchAgainin class- Pattern<A>
- Returns:
- trueif the matching is successful,- falseif it fails. Which- Pattern.Variables are bound by a successful match is class-specific. The default implementation always returns- false.
 
- 
isApplicable
 
-