Package org.eclipse.m2m.atl.emftvm.impl
Class RuleImpl.UniqueOffState
- java.lang.Object
-
- org.eclipse.m2m.atl.emftvm.impl.RuleImpl.UniqueState
-
- org.eclipse.m2m.atl.emftvm.impl.RuleImpl.UniqueOffState
-
- Enclosing class:
- RuleImpl
protected class RuleImpl.UniqueOffState extends RuleImpl.UniqueState
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
UniqueOffState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkAndCreateUniqueMapping(TracedRule tr, org.eclipse.emf.common.util.EList<SourceElement> ses)
Checks for existence and creates a unique trace mapping entry for the source values inses
, if applicable.void
createUniqueMapping(TraceLink trace)
Creates a unique trace mapping entry for the source values intrace
, if applicable.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.-
Methods inherited from class org.eclipse.m2m.atl.emftvm.impl.RuleImpl.UniqueState
applyOne, getUniqueTrace
-
-
-
-
Method Detail
-
createUniqueMapping
public void createUniqueMapping(TraceLink trace)
Creates a unique trace mapping entry for the source values intrace
, if applicable.- Specified by:
createUniqueMapping
in classRuleImpl.UniqueState
- Parameters:
trace
- the trace element with source values
-
checkAndCreateUniqueMapping
public void checkAndCreateUniqueMapping(TracedRule tr, org.eclipse.emf.common.util.EList<SourceElement> ses)
Checks for existence and creates a unique trace mapping entry for the source values inses
, if applicable.- Specified by:
checkAndCreateUniqueMapping
in classRuleImpl.UniqueState
- Parameters:
tr
- the traced rule to add the unique traces toses
- the source values that serve as a the unique trace key
-
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. In case of a unique rule, this method will not match if the rule has already matched againstvalues
before.- Specified by:
matchFor
in classRuleImpl.UniqueState
- Parameters:
frame
- the stack frame contextvalues
- the source values to match against- Returns:
true
iff this rule matches againstvalues
-
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. In case of a unique rule, this method will not match if the rule has already matched againstvalues
before.- Specified by:
matchFor
in classRuleImpl.UniqueState
- 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
-
-