Class GrammarInterpreterRuleContext

    • Field Detail

      • outerAltNum

        protected int outerAltNum
    • Constructor Detail

      • GrammarInterpreterRuleContext

        public GrammarInterpreterRuleContext​(ParserRuleContext parent,
                                             int invokingStateNumber,
                                             int ruleIndex)
    • Method Detail

      • getOuterAltNum

        public int getOuterAltNum()
        The predicted outermost alternative for the rule associated with this context object. If this node left recursive, the true original outermost alternative is returned.
      • setOuterAltNum

        public void setOuterAltNum​(int outerAltNum)
      • getAltNumber

        public int getAltNumber()
        Description copied from class: RuleContext
        For rule associated with this parse tree internal node, return the outer alternative number used to match the input. Default implementation does not compute nor store this alt num. Create a subclass of ParserRuleContext with backing field and set option contextSuperClass. to set it.
        Overrides:
        getAltNumber in class RuleContext
      • setAltNumber

        public void setAltNumber​(int altNumber)
        Description copied from class: RuleContext
        Set the outer alternative number for this context node. Default implementation does nothing to avoid backing field overhead for trees that don't need it. Create a subclass of ParserRuleContext with backing field and set option contextSuperClass.
        Overrides:
        setAltNumber in class RuleContext