Class Grammar.LabelElementPair

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

public class Grammar.LabelElementPair extends Object
  • Field Details

    • label

      public antlr.Token label
    • elementRef

      public GrammarAST elementRef
    • referencedRuleName

      public 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 Details

    • LabelElementPair

      public LabelElementPair(antlr.Token label, GrammarAST elementRef)
  • Method Details

    • getReferencedRule

      public Rule getReferencedRule()
    • toString

      public String toString()
      Overrides:
      toString in class Object