Package org.eclipse.m2m.atl.emftvm.impl
Class RuleImpl.AutomaticRecursiveState
java.lang.Object
org.eclipse.m2m.atl.emftvm.impl.RuleImpl.RuleModeState
org.eclipse.m2m.atl.emftvm.impl.RuleImpl.AutomaticRecursiveState
- Enclosing class:
- RuleImpl
RuleImpl.RuleModeState
class for rules with mode RuleMode.AUTOMATIC_RECURSIVE
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
matchFor
(StackFrame frame, Object[] values) Matches this rule againstvalues
, and records a match inExecEnv.getMatches()
in case of a match.boolean
Matches this rule againstvalues
, and records a match inExecEnv.getMatches()
in case of a match.boolean[]
matchRecursive
(StackFrame frame) Matches#getRule()
for the automatic recursive stage, if applicable.Methods inherited from class org.eclipse.m2m.atl.emftvm.impl.RuleImpl.RuleModeState
matchManual, matchSingle
-
Constructor Details
-
AutomaticRecursiveState
protected AutomaticRecursiveState()
-
-
Method Details
-
matchRecursive
Matches#getRule()
for the automatic recursive stage, if applicable.- Overrides:
matchRecursive
in classRuleImpl.RuleModeState
- Parameters:
frame
- the stack frame in which to execute the matcher- Returns:
true
iff the rule has any matches
-
matchFor
Matches this rule againstvalues
, and records a match inExecEnv.getMatches()
in case of a match. In case of a unique rule, this method will not match if the rule has already matched againstvalues
before.- Specified by:
matchFor
in classRuleImpl.RuleModeState
- Parameters:
frame
- the stack frame contextvalues
- the source values to match against- Returns:
true
iff this rule matches againstvalues
-
matchFor
Matches this rule againstvalues
, and records a match inExecEnv.getMatches()
in case of a match. In case of a unique rule, this method will not match if the rule has already matched againstvalues
before.- Specified by:
matchFor
in classRuleImpl.RuleModeState
- 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
-