org.antlr.tool
Class Grammar.LabelElementPair

java.lang.Object
  extended by org.antlr.tool.Grammar.LabelElementPair
Enclosing class:
Grammar

public class Grammar.LabelElementPair
extends java.lang.Object


Field Summary
 boolean actionReferencesLabel
          Has an action referenced the label? Set by ActionAnalysis.g Currently only set for rule labels.
 GrammarAST elementRef
           
 antlr.Token label
           
 java.lang.String referencedRuleName
           
 int type
           
 
Constructor Summary
Grammar.LabelElementPair(antlr.Token label, GrammarAST elementRef)
           
 
Method Summary
 Rule getReferencedRule()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

label

public antlr.Token label

elementRef

public GrammarAST elementRef

referencedRuleName

public java.lang.String referencedRuleName

actionReferencesLabel

public boolean actionReferencesLabel
Has an action referenced the label? Set by ActionAnalysis.g Currently only set for rule labels.


type

public int type
Constructor Detail

Grammar.LabelElementPair

public Grammar.LabelElementPair(antlr.Token label,
                                GrammarAST elementRef)
Method Detail

getReferencedRule

public Rule getReferencedRule()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object