Package org.eclipse.m2m.atl.emftvm.impl
Class RuleImpl.WithMatcherCbState
- java.lang.Object
-
- org.eclipse.m2m.atl.emftvm.impl.RuleImpl.MatcherCbState
-
- org.eclipse.m2m.atl.emftvm.impl.RuleImpl.WithMatcherCbState
-
- Enclosing class:
- RuleImpl
protected class RuleImpl.WithMatcherCbState extends RuleImpl.MatcherCbState
RuleImpl.MatcherCbState
class for rules that have aRule.getMatcher()
code block.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
WithMatcherCbState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matchFor(StackFrame frame, java.lang.Object[] values)
Matches this rule againstvalues
, and records a match inExecEnv.getMatches()
in case of a match.boolean
matchFor(StackFrame frame, java.util.Map<java.lang.String,java.lang.Object> valuesMap, java.lang.Object[] values)
Matches this rule againstvalues
, and records a match inExecEnv.getMatches()
in case of a match.
-
-
-
Method Detail
-
matchFor
public boolean matchFor(StackFrame frame, java.lang.Object[] values)
Matches this rule againstvalues
, and records a match inExecEnv.getMatches()
in case of a match.- Overrides:
matchFor
in classRuleImpl.MatcherCbState
- Parameters:
frame
- the stack frame in which to run the matchervalues
- the source values to match- Returns:
true
iff the rule matches
-
matchFor
public boolean matchFor(StackFrame frame, java.util.Map<java.lang.String,java.lang.Object> valuesMap, java.lang.Object[] values)
Matches this rule againstvalues
, and records a match inExecEnv.getMatches()
in case of a match.- Overrides:
matchFor
in classRuleImpl.MatcherCbState
- Parameters:
frame
- the stack frame contextvaluesMap
- the map of all values, including super-rule elementsvalues
- the source values to match against- Returns:
true
iff this rule matches againstvalues
-
-