Top Description Fields Constructors Methods
org.antlr.analysis

public Class RuleClosureTransition

extends Transition
Class Inheritance
Imports
org.antlr.tool.Rule

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

Modifier and TypeField and Description
public NFAState
followState

What node to begin computations following ref to rule

public Rule
rule

Ptr to the rule definition object for this rule ref

Inherited from org.antlr.analysis.Transition:
labeltarget

Constructor Summary

AccessConstructor and Description
public
RuleClosureTransition(Rule rule, NFAState ruleStart, NFAState followState)

Method Summary

Inherited from org.antlr.analysis.Transition:
compareToequalshashCodeisActionisEpsilonisSemanticPredicatetoString

Field Detail

followStateback to summary
public NFAState followState

What node to begin computations following ref to rule

ruleback to summary
public Rule rule

Ptr to the rule definition object for this rule ref

Constructor Detail

RuleClosureTransitionback to summary
public RuleClosureTransition(Rule rule, NFAState ruleStart, NFAState followState)