Uses of Interface
org.antlr.v4.runtime.TokenStream
Packages that use TokenStream
-
Uses of TokenStream in org.antlr.v4.runtime
Classes in org.antlr.v4.runtime that implement TokenStreamModifier and TypeClassDescriptionclass
This implementation ofTokenStream
loads tokens from aTokenSource
on-demand, and places the tokens in a buffer to provide access to any previous token by index.class
This class extendsBufferedTokenStream
with functionality to filter token streams to tokens on a particular channel (tokens whereToken.getChannel()
returns a particular value).class
UnbufferedTokenStream<T extends Token>
Fields in org.antlr.v4.runtime declared as TokenStreamModifier and TypeFieldDescriptionprotected TokenStream
Parser._input
The input stream.protected final TokenStream
TokenStreamRewriter.tokens
Our source streamMethods in org.antlr.v4.runtime that return TokenStreamModifier and TypeMethodDescriptionParser.getInputStream()
Parser.getTokenStream()
final TokenStream
TokenStreamRewriter.getTokenStream()
Methods in org.antlr.v4.runtime with parameters of type TokenStreamModifier and TypeMethodDescriptionvoid
Parser.setTokenStream
(TokenStream input) Set the token stream and reset the parser.Constructors in org.antlr.v4.runtime with parameters of type TokenStreamModifierConstructorDescriptionNoViableAltException
(Parser 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) TokenStreamRewriter
(TokenStream tokens) -
Uses of TokenStream in org.antlr.v4.runtime.atn
Fields in org.antlr.v4.runtime.atn declared as TokenStreamModifier and TypeFieldDescriptionprotected TokenStream
ParserATNSimulator._input
final TokenStream
DecisionEventInfo.input
The input token stream which is being parsed.Methods in org.antlr.v4.runtime.atn with parameters of type TokenStreamModifier and TypeMethodDescriptionint
ParserATNSimulator.adaptivePredict
(TokenStream input, int decision, ParserRuleContext outerContext) int
ProfilingATNSimulator.adaptivePredict
(TokenStream input, int decision, ParserRuleContext outerContext) protected int
ParserATNSimulator.execATN
(DFA dfa, DFAState s0, TokenStream input, int startIndex, ParserRuleContext outerContext) 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 int
ParserATNSimulator.execATNWithFullContext
(DFA dfa, DFAState D, ATNConfigSet s0, TokenStream input, int startIndex, ParserRuleContext outerContext) ParserATNSimulator.getLookaheadName
(TokenStream input) protected NoViableAltException
ParserATNSimulator.noViableAlt
(TokenStream input, ParserRuleContext outerContext, ATNConfigSet configs, int startIndex) Constructors in org.antlr.v4.runtime.atn with parameters of type TokenStreamModifierConstructorDescriptionAmbiguityInfo
(int decision, ATNConfigSet configs, BitSet ambigAlts, TokenStream input, int startIndex, int stopIndex, boolean fullCtx) Constructs a new instance of theAmbiguityInfo
class with the specified detailed ambiguity information.ContextSensitivityInfo
(int decision, ATNConfigSet configs, TokenStream input, int startIndex, int stopIndex) Constructs a new instance of theContextSensitivityInfo
class with the specified detailed context sensitivity information.DecisionEventInfo
(int decision, ATNConfigSet configs, TokenStream input, int startIndex, int stopIndex, boolean fullCtx) ErrorInfo
(int decision, ATNConfigSet configs, TokenStream input, int startIndex, int stopIndex, boolean fullCtx) Constructs a new instance of theErrorInfo
class with the specified detailed syntax error information.LookaheadEventInfo
(int decision, ATNConfigSet configs, int predictedAlt, TokenStream input, int startIndex, int stopIndex, boolean fullCtx) Constructs a new instance of theLookaheadEventInfo
class with the specified detailed lookahead information.PredicateEvalInfo
(int decision, TokenStream input, int startIndex, int stopIndex, SemanticContext semctx, boolean evalResult, int predictedAlt, boolean fullCtx) Constructs a new instance of thePredicateEvalInfo
class with the specified detailed predicate evaluation information. -
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 ParserInterpreter
GrammarParserInterpreter.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.