Uses of Interface
org.antlr.v4.runtime.TokenStream
-
Packages that use TokenStream Package Description org.antlr.v4.runtime org.antlr.v4.runtime.atn -
-
Uses of TokenStream in org.antlr.v4.runtime
Classes in org.antlr.v4.runtime that implement TokenStream Modifier and Type Class Description class
BufferedTokenStream
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
CommonTokenStream
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 TokenStream Modifier and Type Field Description protected TokenStream
Parser. _input
The input stream.protected TokenStream
TokenStreamRewriter. tokens
Our source streamMethods in org.antlr.v4.runtime that return TokenStream Modifier and Type Method Description TokenStream
Parser. getInputStream()
TokenStream
Parser. getTokenStream()
TokenStream
TokenStreamRewriter. getTokenStream()
Methods in org.antlr.v4.runtime with parameters of type TokenStream Modifier and Type Method Description void
Parser. setTokenStream(TokenStream input)
Set the token stream and reset the parser.Constructors in org.antlr.v4.runtime with parameters of type TokenStream Constructor Description NoViableAltException(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 TokenStream Modifier and Type Field Description protected TokenStream
ParserATNSimulator. _input
TokenStream
DecisionEventInfo. input
The input token stream which is being parsed.Methods in org.antlr.v4.runtime.atn with parameters of type TokenStream Modifier and Type Method Description int
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)
String
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 TokenStream Constructor Description AmbiguityInfo(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.
-