All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Java.target.apidocs.org.antlr.v4.runtime.InterpreterRuleContext.html Maven / Gradle / Ivy

There is a newer version: 4.9.0
Show newest version






InterpreterRuleContext (ANTLR 4 Runtime (Optimized) 4.7.3 API)











org.antlr.v4.runtime

Class InterpreterRuleContext

  • All Implemented Interfaces:
    ParseTree, RuleNode, SyntaxTree, Tree


    public class InterpreterRuleContext
    extends ParserRuleContext
    This class extends ParserRuleContext by allowing the value of getRuleIndex() to be explicitly set for the context.

    ParserRuleContext does not include field storage for the rule index since the context classes created by the code generator override the getRuleIndex() method to return the correct value for that context. Since the parser interpreter does not use the context classes generated for a parser, this class (with slightly more memory overhead per node) is used to provide equivalent functionality.

    • Constructor Detail

      • InterpreterRuleContext

        public InterpreterRuleContext(@Nullable
                              ParserRuleContext parent,
                              int invokingStateNumber,
                              int ruleIndex)
        Constructs a new InterpreterRuleContext with the specified parent, invoking state, and rule index.
        Parameters:
        parent - The parent context.
        invokingStateNumber - The invoking state number.
        ruleIndex - The rule index for the current context.

Copyright © 1992–2019 Tunnel Vision Laboratories, LLC. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy