org.antlr.analysis
Class RuleClosureTransition
java.lang.Object
org.antlr.analysis.Transition
org.antlr.analysis.RuleClosureTransition
- All Implemented Interfaces:
- java.lang.Comparable
public class RuleClosureTransition
- extends Transition
A transition used to reference another rule. It tracks two targets
really: the actual transition target and the state following the
state that refers to the other rule. Conversion of an NFA that
falls off the end of a rule will be able to figure out who invoked
that rule because of these special transitions.
Field Summary |
NFAState |
followState
What node to begin computations following ref to rule |
Rule |
rule
Ptr to the rule definition object for this rule ref |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
rule
public Rule rule
- Ptr to the rule definition object for this rule ref
followState
public NFAState followState
- What node to begin computations following ref to rule
RuleClosureTransition
public RuleClosureTransition(Rule rule,
NFAState ruleStart,
NFAState followState)
Copyright © 2013. All Rights Reserved.