Package org.eclipse.m2m.atl.emftvm.impl
Class RuleImpl.LeafState
- java.lang.Object
-
- org.eclipse.m2m.atl.emftvm.impl.RuleImpl.LeafState
-
- Direct Known Subclasses:
RuleImpl.IsLeafState,RuleImpl.IsOtherLeafState,RuleImpl.IsWithLeavesState
- Enclosing class:
- RuleImpl
protected abstract class RuleImpl.LeafState extends java.lang.ObjectBase class for code that depends on the rule'sRule.isAbstract()andRule.getESubRules().
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedLeafState()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanapplyFirst(StackFrame frame)Applies and post-applies this rule for the first recorded match.abstract boolean[]matchRecursive(StackFrame frame)Matches#getRule()for the automatic recursive stage, if applicable.booleanmatchSingle(StackFrame frame)Matches#getRule()for the automatic single stage, if applicable.
-
-
-
Method Detail
-
matchSingle
public boolean matchSingle(StackFrame frame)
Matches#getRule()for the automatic single stage, if applicable.- Parameters:
frame- the stack frame in which to execute the matcher- Returns:
trueiff the rule has any matches
-
matchRecursive
public abstract boolean[] matchRecursive(StackFrame frame)
Matches#getRule()for the automatic recursive stage, if applicable.- Parameters:
frame- the stack frame in which to execute the matcher- Returns:
trueiff the rule has any matches
-
applyFirst
public boolean applyFirst(StackFrame frame)
Applies and post-applies this rule for the first recorded match.- Parameters:
frame- the stack frame in which to execute the applier and post-applier- Returns:
trueiff this rule was applied
-
-