Class Grammar.LabelElementPair

  • Enclosing class:
    Grammar

    public class Grammar.LabelElementPair
    extends Object
    • Field Detail

      • label

        public org.antlr.runtime.Token label
      • 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 Detail

      • LabelElementPair

        public LabelElementPair​(org.antlr.runtime.Token label,
                                GrammarAST elementRef)
    • Method Detail

      • getReferencedRule

        public Rule getReferencedRule()