Skip navigation links
  • Overview
  • Package
  • Class
  • Use
  • Tree
  • Deprecated
  • Index
  • Help

Deprecated API

Contents

  • Classes
  • Fields
  • Methods
  • Constructors
  • Enum Constants
  • Deprecated Classes
    Class
    Description
    org.antlr.v4.runtime.ANTLRFileStream
    as of 4.7 Please use CharStreams interface.
    org.antlr.v4.runtime.ANTLRInputStream
    as of 4.7 Please use CharStreams interface.
    org.antlr.v4.runtime.dfa.SparseEdgeMap
    Use HashEdgeMap instead.
    org.antlr.v4.runtime.misc.TestRig
     
  • Deprecated Fields
    Field
    Description
    org.antlr.v4.codegen.model.Recognizer.tokenNames
    This field is provided only for compatibility with code generation targets which have not yet been updated to use Recognizer.literalNames and Recognizer.symbolicNames.
    org.antlr.v4.runtime.atn.ATNSimulator.SERIALIZED_UUID
    Use ATNDeserializer.checkCondition(boolean) instead.
    org.antlr.v4.runtime.atn.ATNSimulator.SERIALIZED_VERSION
    Use ATNDeserializer.SERIALIZED_VERSION instead.
    org.antlr.v4.runtime.atn.LexerATNSimulator.match_calls
    This field is no longer used.
    org.antlr.v4.runtime.atn.ParserATNSimulator.optimize_hidden_conflicted_configs
    This flag is not currently used by the ATN simulator.
    org.antlr.v4.runtime.LexerInterpreter.tokenNames
    org.antlr.v4.runtime.ParserInterpreter.tokenNames
    org.antlr.v4.runtime.tree.xpath.XPathLexer.tokenNames
    Use XPathLexer.VOCABULARY instead.
    org.antlr.v4.test.runtime.java.api.GroovyLikeLexer.tokenNames
    Use GroovyLikeLexer.VOCABULARY instead.
    org.antlr.v4.test.runtime.java.api.GroovyLikeParser.tokenNames
    Use GroovyLikeParser.VOCABULARY instead.
    org.antlr.v4.test.runtime.java.api.JavaLexer.tokenNames
    Use JavaLexer.VOCABULARY instead.
    org.antlr.v4.test.runtime.java.api.JavaParser.tokenNames
    Use JavaParser.VOCABULARY instead.
    org.antlr.v4.test.runtime.java.api.perf.graphemesLexer.tokenNames
    Use graphemesLexer.VOCABULARY instead.
    org.antlr.v4.test.runtime.java.api.perf.graphemesParser.tokenNames
    Use graphemesParser.VOCABULARY instead.
  • Deprecated Methods
    Method
    Description
    org.antlr.v4.runtime.atn.ATNSimulator.checkCondition(boolean)
    Use ATNDeserializer.checkCondition(boolean) instead.
    org.antlr.v4.runtime.atn.ATNSimulator.checkCondition(boolean, String)
    Use ATNDeserializer.checkCondition(boolean, String) instead.
    org.antlr.v4.runtime.atn.ATNSimulator.deserialize(char[])
    Use ATNDeserializer.deserialize(java.lang.String) instead.
    org.antlr.v4.runtime.atn.ATNSimulator.edgeFactory(ATN, int, int, int, int, int, int, List<IntervalSet>)
    Use ATNDeserializer.edgeFactory(org.antlr.v4.runtime.atn.ATN, int, int, int, int, int, int, java.util.List<org.antlr.v4.runtime.misc.IntervalSet>) instead.
    org.antlr.v4.runtime.atn.ATNSimulator.stateFactory(int, int)
    Use ATNDeserializer.stateFactory(int, int) instead.
    org.antlr.v4.runtime.atn.ATNSimulator.toInt(char)
    Use ATNDeserializer.toInt(char) instead.
    org.antlr.v4.runtime.atn.ATNSimulator.toInt32(char[], int)
    Use ATNDeserializer.toInt32(char[], int) instead.
    org.antlr.v4.runtime.atn.ATNSimulator.toLong(char[], int)
    Use ATNDeserializer.toLong(char[], int) instead.
    org.antlr.v4.runtime.atn.ATNSimulator.toUUID(char[], int)
    Use ATNDeserializer.toUUID(char[], int) instead.
    org.antlr.v4.runtime.BufferedTokenStream.reset()
    Use seek(0) instead.
    org.antlr.v4.runtime.dfa.DFA.setPrecedenceDfa(boolean)
    This method no longer performs any action.
    org.antlr.v4.runtime.dfa.DFA.toString(String[])
    Use DFA.toString(Vocabulary) instead.
    org.antlr.v4.runtime.dfa.DFA.toString(String[], String[])
    Use DFA.toString(Vocabulary, String[]) instead.
    org.antlr.v4.runtime.Lexer.getTokenNames()
    org.antlr.v4.runtime.LexerInterpreter.getTokenNames()
    org.antlr.v4.runtime.misc.IntervalSet.elementName(String[], int)
    Use IntervalSet.elementName(Vocabulary, int) instead.
    org.antlr.v4.runtime.misc.IntervalSet.toString(String[])
    Use IntervalSet.toString(Vocabulary) instead.
    org.antlr.v4.runtime.Parser.enterRecursionRule(ParserRuleContext, int)
    Use Parser.enterRecursionRule(ParserRuleContext, int, int, int) instead.
    org.antlr.v4.runtime.ParserInterpreter.getTokenNames()
    org.antlr.v4.runtime.ParserRuleContext.addChild(Token)
    org.antlr.v4.runtime.ParserRuleContext.addErrorNode(Token)
    org.antlr.v4.runtime.Recognizer.getTokenErrorDisplay(Token)
    This method is not called by the ANTLR 4 Runtime. Specific implementations of ANTLRErrorStrategy may provide a similar feature when necessary. For example, see DefaultErrorStrategy.getTokenErrorDisplay(org.antlr.v4.runtime.Token).
    org.antlr.v4.runtime.Recognizer.getTokenNames()
    Use Recognizer.getVocabulary() instead.
    org.antlr.v4.runtime.tree.Trees.descendants(ParseTree)
     
    org.antlr.v4.runtime.tree.xpath.XPathLexer.getTokenNames()
    org.antlr.v4.test.runtime.java.api.GroovyLikeLexer.getTokenNames()
    org.antlr.v4.test.runtime.java.api.GroovyLikeParser.getTokenNames()
    org.antlr.v4.test.runtime.java.api.JavaLexer.getTokenNames()
    org.antlr.v4.test.runtime.java.api.JavaParser.getTokenNames()
    org.antlr.v4.test.runtime.java.api.perf.graphemesLexer.getTokenNames()
    org.antlr.v4.test.runtime.java.api.perf.graphemesParser.getTokenNames()
  • Deprecated Constructors
    Constructor
    Description
    org.antlr.v4.runtime.atn.RuleTransition(RuleStartState, int, ATNState)
    Use RuleTransition(RuleStartState, int, int, ATNState) instead.
    org.antlr.v4.runtime.dfa.DFASerializer(DFA, String[])
    Use DFASerializer(DFA, Vocabulary) instead.
    org.antlr.v4.runtime.dfa.DFASerializer(DFA, String[], String[], ATN)
    Use DFASerializer(DFA, Vocabulary, String[], ATN) instead.
    org.antlr.v4.runtime.LexerInterpreter(String, Collection<String>, Collection<String>, Collection<String>, ATN, CharStream)
    org.antlr.v4.runtime.LexerInterpreter(String, Vocabulary, Collection<String>, Collection<String>, ATN, CharStream)
    org.antlr.v4.runtime.ParserInterpreter(String, Collection<String>, Collection<String>, ATN, TokenStream)
    Use ParserInterpreter(String, Vocabulary, Collection, ATN, TokenStream) instead.
  • Deprecated Enum Constants
    Enum Constant
    Description
    org.antlr.v4.tool.ErrorType.ALL_OPS_NEED_SAME_ASSOC
    This warning is no longer applicable with the current syntax for specifying associativity.
    org.antlr.v4.tool.ErrorType.LEXER_ACTION_PLACEMENT_ISSUE
    This error is no longer issued by ANTLR 4.2.