Uses of Interface
org.antlr.v4.runtime.CharStream
-
Packages that use CharStream Package Description org.antlr.v4.runtime org.antlr.v4.runtime.atn org.antlr.v4.runtime.tree.pattern org.antlr.v4.runtime.tree.xpath -
-
Uses of CharStream in org.antlr.v4.runtime
Classes in org.antlr.v4.runtime that implement CharStream Modifier and Type Class Description classANTLRFileStreamDeprecated.as of 4.7 Please useCharStreamsinterface.classANTLRInputStreamDeprecated.as of 4.7 Please useCharStreamsinterface.classCodePointCharStreamAlternative toANTLRInputStreamwhich treats the input as a series of Unicode code points, instead of a series of UTF-16 code units.classUnbufferedCharStreamDo not buffer up the entire char stream.Fields in org.antlr.v4.runtime declared as CharStream Modifier and Type Field Description CharStreamLexer. _inputFields in org.antlr.v4.runtime with type parameters of type CharStream Modifier and Type Field Description protected Pair<TokenSource,CharStream>Lexer. _tokenFactorySourcePairprotected static Pair<TokenSource,CharStream>CommonToken. EMPTY_SOURCEAn emptyPairwhich is used as the default value ofCommonToken.sourcefor tokens that do not have a source.protected Pair<TokenSource,CharStream>CommonToken. sourceThis is the backing field forCommonToken.getTokenSource()andCommonToken.getInputStream().Methods in org.antlr.v4.runtime that return CharStream Modifier and Type Method Description static CharStreamCharStreams. fromChannel(ReadableByteChannel channel)Creates aCharStreamgiven an openedReadableByteChannelcontaining UTF-8 bytes.static CharStreamCharStreams. fromChannel(ReadableByteChannel channel, Charset charset)Creates aCharStreamgiven an openedReadableByteChanneland the charset of the bytes contained in the channel.static CharStreamCharStreams. fromFileName(String fileName)Creates aCharStreamgiven a string containing a path to a UTF-8 file on disk.static CharStreamCharStreams. fromFileName(String fileName, Charset charset)Creates aCharStreamgiven a string containing a path to a file on disk and the charset of the bytes contained in the file.static CharStreamCharStreams. fromPath(Path path)Creates aCharStreamgiven a path to a UTF-8 encoded file on disk.static CharStreamCharStreams. fromPath(Path path, Charset charset)Creates aCharStreamgiven a path to a file on disk and the charset of the bytes contained in the file.static CharStreamCharStreams. fromStream(InputStream is)Creates aCharStreamgiven an openedInputStreamcontaining UTF-8 bytes.static CharStreamCharStreams. fromStream(InputStream is, Charset charset)Creates aCharStreamgiven an openedInputStreamand the charset of the bytes contained in the stream.static CharStreamCharStreams. fromStream(InputStream is, Charset charset, long inputSize)CharStreamCommonToken. getInputStream()CharStreamLexer. getInputStream()CharStreamLexerNoViableAltException. getInputStream()CharStreamListTokenSource. getInputStream()Get theCharStreamfrom which this token source is currently providing tokens.CharStreamToken. getInputStream()Gets theCharStreamfrom which this token was derived.CharStreamTokenSource. getInputStream()Get theCharStreamfrom which this token source is currently providing tokens.Method parameters in org.antlr.v4.runtime with type arguments of type CharStream Modifier and Type Method Description CommonTokenCommonTokenFactory. create(Pair<TokenSource,CharStream> source, int type, String text, int channel, int start, int stop, int line, int charPositionInLine)SymbolTokenFactory. create(Pair<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 CharStream Constructor Description Lexer(CharStream input)LexerInterpreter(String grammarFileName, Collection<String> tokenNames, Collection<String> ruleNames, Collection<String> modeNames, ATN atn, CharStream input)Deprecated.LexerInterpreter(String grammarFileName, Vocabulary vocabulary, Collection<String> ruleNames, Collection<String> channelNames, Collection<String> modeNames, ATN atn, CharStream input)LexerInterpreter(String grammarFileName, Vocabulary vocabulary, Collection<String> ruleNames, Collection<String> modeNames, ATN atn, CharStream input)Deprecated.LexerNoViableAltException(Lexer lexer, CharStream input, int startIndex, ATNConfigSet deadEndConfigs)Constructor parameters in org.antlr.v4.runtime with type arguments of type CharStream Constructor Description CommonToken(Pair<TokenSource,CharStream> source, int type, int channel, int start, int stop) -
Uses of CharStream in org.antlr.v4.runtime.atn
Methods in org.antlr.v4.runtime.atn with parameters of type CharStream Modifier and Type Method Description protected voidLexerATNSimulator. accept(CharStream input, LexerActionExecutor lexerActionExecutor, int startIndex, int index, int line, int charPos)protected voidLexerATNSimulator. captureSimState(LexerATNSimulator.SimState settings, CharStream input, DFAState dfaState)protected booleanLexerATNSimulator. closure(CharStream input, LexerATNConfig config, ATNConfigSet configs, boolean currentAltReachedAcceptState, boolean speculative, boolean treatEofAsEpsilon)Since the alternatives within any lexer decision are ordered by preference, this method stops pursuing the closure as soon as an accept state is reached.protected ATNConfigSetLexerATNSimulator. computeStartState(CharStream input, ATNState p)protected DFAStateLexerATNSimulator. computeTargetState(CharStream input, DFAState s, int t)Compute a target state for an edge in the DFA, and attempt to add the computed state and corresponding edge to the DFA.voidLexerATNSimulator. consume(CharStream input)protected booleanLexerATNSimulator. evaluatePredicate(CharStream input, int ruleIndex, int predIndex, boolean speculative)Evaluate a predicate specified in the lexer.protected intLexerATNSimulator. execATN(CharStream input, DFAState ds0)voidLexerActionExecutor. execute(Lexer lexer, CharStream input, int startIndex)Execute the actions encapsulated by this executor within the context of a particularLexer.protected intLexerATNSimulator. failOrAccept(LexerATNSimulator.SimState prevAccept, CharStream input, ATNConfigSet reach, int t)protected LexerATNConfigLexerATNSimulator. getEpsilonTarget(CharStream input, LexerATNConfig config, Transition t, ATNConfigSet configs, boolean speculative, boolean treatEofAsEpsilon)protected voidLexerATNSimulator. getReachableConfigSet(CharStream input, ATNConfigSet closure, ATNConfigSet reach, int t)Given a starting configuration set, figure out all ATN configurations we can reach upon inputt.StringLexerATNSimulator. getText(CharStream input)Get the text matched so far for the current token.intLexerATNSimulator. match(CharStream input, int mode)protected intLexerATNSimulator. matchATN(CharStream input) -
Uses of CharStream in org.antlr.v4.runtime.tree.pattern
Methods in org.antlr.v4.runtime.tree.pattern that return CharStream Modifier and Type Method Description CharStreamRuleTagToken. getInputStream()Gets theCharStreamfrom which this token was derived. -
Uses of CharStream in org.antlr.v4.runtime.tree.xpath
Constructors in org.antlr.v4.runtime.tree.xpath with parameters of type CharStream Constructor Description XPathLexer(CharStream input)
-