Package org.eclipse.m2m.atl.emftvm.impl
Class RuleImpl.MatcherCbState
java.lang.Object
org.eclipse.m2m.atl.emftvm.impl.RuleImpl.MatcherCbState
- Direct Known Subclasses:
RuleImpl.WithMatcherCbState,RuleImpl.WithoutMatcherCbState
- Enclosing class:
RuleImpl
Base class for code that depends on whether the rule has a
Rule.getMatcher() code block.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatchFor(StackFrame frame, Object[] values) Matches this rule againstvalues, and records a match inExecEnv.getMatches()in case of a match.booleanMatches this rule againstvalues, and records a match inExecEnv.getMatches()in case of a match.
-
Constructor Details
-
MatcherCbState
protected MatcherCbState()
-
-
Method Details
-
matchFor
Matches this rule againstvalues, and records a match inExecEnv.getMatches()in case of a match.- Parameters:
frame- the stack frame in which to run the matchervalues- the source values to match- Returns:
trueiff the rule matches
-
matchFor
Matches this rule againstvalues, and records a match inExecEnv.getMatches()in case of a match.- Parameters:
frame- the stack frame contextvaluesMap- the map of all values, including super-rule elementsvalues- the source values to match against- Returns:
trueiff this rule matches againstvalues
-