Uses of Interface
org.antlr.v4.runtime.TokenStream
Packages that use TokenStream
Package
Description
-
Uses of TokenStream in org.antlr.v4.runtime
Classes in org.antlr.v4.runtime that implement TokenStreamModifier and TypeClassDescriptionclassThis implementation ofTokenStreamloads tokens from aTokenSourceon-demand, and places the tokens in a buffer to provide access to any previous token by index.classThis class extendsBufferedTokenStreamwith functionality to filter token streams to tokens on a particular channel (tokens whereToken.getChannel()returns a particular value).classFields in org.antlr.v4.runtime declared as TokenStreamModifier and TypeFieldDescriptionprotected TokenStreamParser._inputThe input stream.protected final TokenStreamTokenStreamRewriter.RewriteOperation.tokensprotected final TokenStreamTokenStreamRewriter.tokensOur source streamMethods in org.antlr.v4.runtime that return TokenStreamModifier and TypeMethodDescriptionParser.getInputStream()final TokenStreamTokenStreamRewriter.getTokenStream()Methods in org.antlr.v4.runtime with parameters of type TokenStreamModifier and TypeMethodDescriptionvoidParser.setInputStream(TokenStream input) Set the token stream and reset the parser.Constructors in org.antlr.v4.runtime with parameters of type TokenStreamModifierConstructorDescriptionInsertAfterOp(TokenStream tokens, int index, Object text) InsertBeforeOp(TokenStream tokens, int index, Object text) NoViableAltException(Recognizer<Token, ?> recognizer, TokenStream input, Token startToken, Token offendingToken, ATNConfigSet deadEndConfigs, ParserRuleContext ctx) Parser(TokenStream input) ParserInterpreter(String grammarFileName, Collection<String> tokenNames, Collection<String> ruleNames, ATN atn, TokenStream input) Deprecated.ParserInterpreter(String grammarFileName, Vocabulary vocabulary, Collection<String> ruleNames, ATN atn, TokenStream input) ReplaceOp(TokenStream tokens, int from, int to, Object text) protectedRewriteOperation(TokenStream tokens, int index) protectedRewriteOperation(TokenStream tokens, int index, Object text) TokenStreamRewriter(TokenStream tokens) -
Uses of TokenStream in org.antlr.v4.runtime.atn
Fields in org.antlr.v4.runtime.atn declared as TokenStreamModifier and TypeFieldDescriptionprotected TokenStreamProfilingATNSimulator._inputfinal TokenStreamDecisionEventInfo.inputThe input token stream which is being parsed.Methods in org.antlr.v4.runtime.atn with parameters of type TokenStreamModifier and TypeMethodDescriptionintParserATNSimulator.adaptivePredict(TokenStream input, int decision, ParserRuleContext outerContext) intParserATNSimulator.adaptivePredict(TokenStream input, int decision, ParserRuleContext outerContext, boolean useContext) intProfilingATNSimulator.adaptivePredict(TokenStream input, int decision, ParserRuleContext outerContext) protected intParserATNSimulator.execATN(DFA dfa, TokenStream input, int startIndex, SimulatorState initialState) Performs ATN simulation to compute a predicted alternative based upon the remaining input, but also updates the DFA cache to avoid having to traverse the ATN again for the same input sequence.protected intParserATNSimulator.execDFA(DFA dfa, TokenStream input, int startIndex, SimulatorState state) private intParserATNSimulator.execDFA(DFA dfa, TokenStream input, int startIndex, ParserRuleContext outerContext, DFAState s0, boolean useContext, ParserRuleContext remainingOuterContext) DFA walk.private IntegerParserATNSimulator.findFirstValidAltUsingPredicates(TokenStream input, int startIndex, SimulatorState previous, BitSet alts, SemanticContext[] altToPred) ParserATNSimulator.getLookaheadName(TokenStream input) protected SimulatorStateParserATNSimulator.getStartState(DFA dfa, TokenStream input, ParserRuleContext outerContext, boolean useContext) Local- or full-context DFA start, ornullif it is not yet built.protected SimulatorStateProfilingATNSimulator.getStartState(DFA dfa, TokenStream input, ParserRuleContext outerContext, boolean useContext) protected intParserATNSimulator.handleNoViableAlt(TokenStream input, int startIndex, SimulatorState previous) This method is used to improve the localization of error messages by choosing an alternative rather than throwing aNoViableAltExceptionin particular prediction scenarios where theATNSimulator.ERRORstate was reached during ATN simulation.protected NoViableAltExceptionParserATNSimulator.noViableAlt(TokenStream input, ParserRuleContext outerContext, ATNConfigSet configs, int startIndex) private intParserATNSimulator.tryLL1Prediction(TokenStream input, int decision) Single-token LL(1) cache probe against the denseATN.ll1Densetable (no hash, no boxing).private intParserATNSimulator.tryPrecedenceLL1(TokenStream input, DFA dfa) Precedence LL(1) probe.Constructors in org.antlr.v4.runtime.atn with parameters of type TokenStreamModifierConstructorDescriptionAmbiguityInfo(int decision, SimulatorState state, BitSet ambigAlts, TokenStream input, int startIndex, int stopIndex) Constructs a new instance of theAmbiguityInfoclass with the specified detailed ambiguity information.ContextSensitivityInfo(int decision, SimulatorState state, TokenStream input, int startIndex, int stopIndex) Constructs a new instance of theContextSensitivityInfoclass with the specified detailed context sensitivity information.DecisionEventInfo(int decision, SimulatorState state, TokenStream input, int startIndex, int stopIndex, boolean fullCtx) ErrorInfo(int decision, SimulatorState state, TokenStream input, int startIndex, int stopIndex) Constructs a new instance of theErrorInfoclass with the specified detailed syntax error information.LookaheadEventInfo(int decision, SimulatorState state, int predictedAlt, TokenStream input, int startIndex, int stopIndex, boolean fullCtx) Constructs a new instance of theLookaheadEventInfoclass with the specified detailed lookahead information.PredicateEvalInfo(SimulatorState state, int decision, TokenStream input, int startIndex, int stopIndex, SemanticContext semctx, boolean evalResult, int predictedAlt) Constructs a new instance of thePredicateEvalInfoclass with the specified detailed predicate evaluation information. -
Uses of TokenStream in org.antlr.v4.test.runtime.java.api
Constructors in org.antlr.v4.test.runtime.java.api with parameters of type TokenStream -
Uses of TokenStream in org.antlr.v4.test.runtime.java.api.perf
Constructors in org.antlr.v4.test.runtime.java.api.perf with parameters of type TokenStream -
Uses of TokenStream in org.antlr.v4.tool
Methods in org.antlr.v4.tool with parameters of type TokenStreamModifier and TypeMethodDescriptionGrammar.createGrammarParserInterpreter(TokenStream tokenStream) Grammar.createParserInterpreter(TokenStream tokenStream) static ParserInterpreterGrammarParserInterpreter.deriveTempParserInterpreter(Grammar g, Parser originalParser, TokenStream tokens) Derive a new parser from an old one that has knowledge of the grammar.static List<ParserRuleContext>GrammarParserInterpreter.getAllPossibleParseTrees(Grammar g, Parser originalParser, TokenStream tokens, int decision, BitSet alts, int startIndex, int stopIndex, int startRuleIndex) Given an ambiguous parse information, return the list of ambiguous parse trees.static List<ParserRuleContext>GrammarParserInterpreter.getLookaheadParseTrees(Grammar g, ParserInterpreter originalParser, TokenStream tokens, int startRuleIndex, int decision, int startIndex, int stopIndex) Return a list of parse trees, one for each alternative in a decision given the same input.Constructors in org.antlr.v4.tool with parameters of type TokenStreamModifierConstructorDescriptionGrammarParserInterpreter(Grammar g, String grammarFileName, Vocabulary vocabulary, Collection<String> ruleNames, ATN atn, TokenStream input) GrammarParserInterpreter(Grammar g, ATN atn, TokenStream input)
ParserInterpreter(String, Vocabulary, Collection, ATN, TokenStream)instead.