Uses of Interface
org.antlr.v4.runtime.TokenSource
Packages that use TokenSource
Package
Description
-
Uses of TokenSource in org.antlr.v4.runtime
Classes in org.antlr.v4.runtime that implement TokenSourceModifier and TypeClassDescriptionclassA lexer is recognizer that draws input symbols from a character stream.classclassProvides an implementation ofTokenSourceas a wrapper around a list ofTokenobjects.Fields in org.antlr.v4.runtime declared as TokenSourceModifier and TypeFieldDescriptionprotected TokenSourceBufferedTokenStream.tokenSourceTheTokenSourcefrom which tokens for this stream are fetched.protected TokenSourceUnbufferedTokenStream.tokenSourceFields in org.antlr.v4.runtime with type parameters of type TokenSourceModifier and TypeFieldDescriptionprotected Tuple2<? extends TokenSource,CharStream> Lexer._tokenFactorySourcePairprotected static final Tuple2<TokenSource,CharStream> CommonToken.EMPTY_SOURCEAn emptyTuple2which is used as the default value ofCommonToken.sourcefor tokens that do not have a source.protected Tuple2<? extends TokenSource,CharStream> CommonToken.sourceThis is the backing field forCommonToken.getTokenSource()andCommonToken.getInputStream().Methods in org.antlr.v4.runtime that return TokenSourceModifier and TypeMethodDescriptionBufferedTokenStream.getTokenSource()CommonToken.getTokenSource()Token.getTokenSource()Gets theTokenSourcewhich created this token.TokenStream.getTokenSource()Gets the underlyingTokenSourcewhich provides tokens for this stream.UnbufferedTokenStream.getTokenSource()Methods in org.antlr.v4.runtime with parameters of type TokenSourceModifier and TypeMethodDescriptionprotected TokenDefaultErrorStrategy.constructToken(TokenSource tokenSource, int expectedTokenType, String tokenText, Token current) voidBufferedTokenStream.setTokenSource(TokenSource tokenSource) Reset this token stream by setting its token source.Method parameters in org.antlr.v4.runtime with type arguments of type TokenSourceModifier and TypeMethodDescriptionCommonTokenFactory.create(Tuple2<? extends TokenSource, CharStream> source, int type, String text, int channel, int start, int stop, int line, int charPositionInLine) TokenFactory.create(Tuple2<? extends TokenSource, CharStream> source, int type, String text, int channel, int start, int stop, int line, int charPositionInLine) This is the method used to create tokens in the lexer and in the error handling strategy.Constructors in org.antlr.v4.runtime with parameters of type TokenSourceModifierConstructorDescriptionBufferedTokenStream(TokenSource tokenSource) CommonTokenStream(TokenSource tokenSource) Constructs a newCommonTokenStreamusing the specified token source and the default token channel (Token.DEFAULT_CHANNEL).CommonTokenStream(TokenSource tokenSource, int channel) Constructs a newCommonTokenStreamusing the specified token source and filtering tokens to the specified channel.UnbufferedTokenStream(TokenSource tokenSource) UnbufferedTokenStream(TokenSource tokenSource, int bufferSize) Constructor parameters in org.antlr.v4.runtime with type arguments of type TokenSourceModifierConstructorDescriptionCommonToken(Tuple2<? extends TokenSource, CharStream> source, int type, int channel, int start, int stop) CommonToken(Tuple2<? extends TokenSource, CharStream> source, int type, int channel, int start, int stop, int line, int charPositionInLine) Constructs a token with start coordinates already known to the caller. -
Uses of TokenSource in org.antlr.v4.runtime.tree.pattern
Methods in org.antlr.v4.runtime.tree.pattern that return TokenSourceModifier and TypeMethodDescriptionRuleTagToken.getTokenSource()Gets theTokenSourcewhich created this token. -
Uses of TokenSource in org.antlr.v4.runtime.tree.xpath
Classes in org.antlr.v4.runtime.tree.xpath that implement TokenSource -
Uses of TokenSource in org.antlr.v4.test.runtime.java.api
Classes in org.antlr.v4.test.runtime.java.api that implement TokenSource -
Uses of TokenSource in org.antlr.v4.test.runtime.java.api.perf
Classes in org.antlr.v4.test.runtime.java.api.perf that implement TokenSource