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
Base class for code that depends on the rule's
Rule.isAbstract() and Rule.getESubRules().-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanapplyFirst(StackFrame frame) Applies and post-applies this rule for the first recorded match.abstract boolean[]matchRecursive(StackFrame frame) Matchesfor the automatic recursive stage, if applicable.invalid reference
#getRule()booleanmatchSingle(StackFrame frame) Matchesfor the automatic single stage, if applicable.invalid reference
#getRule()
-
Constructor Details
-
LeafState
protected LeafState()
-
-
Method Details
-
matchSingle
Matchesfor the automatic single stage, if applicable.invalid reference
#getRule()- Parameters:
frame- the stack frame in which to execute the matcher- Returns:
trueiff the rule has any matches
-
matchRecursive
Matchesfor the automatic recursive stage, if applicable.invalid reference
#getRule()- Parameters:
frame- the stack frame in which to execute the matcher- Returns:
trueiff the rule has any matches
-
applyFirst
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
-