Uses of Interface
org.antlr.v4.runtime.CharStream
Packages that use CharStream
Package
Description
-
Uses of CharStream in org.antlr.v4.gui
Methods in org.antlr.v4.gui with parameters of type CharStream -
Uses of CharStream in org.antlr.v4.runtime
Classes in org.antlr.v4.runtime that implement CharStreamModifier and TypeClassDescriptionclassDeprecated.classDeprecated.as of 4.7 Please useCharStreamsinterface.classAlternative toANTLRInputStreamwhich treats the input as a series of Unicode code points, instead of a series of UTF-16 code units.classDo not buffer up the entire char stream.Fields in org.antlr.v4.runtime declared as CharStreamFields in org.antlr.v4.runtime with type parameters of type CharStreamModifier and TypeFieldDescriptionprotected Pair<TokenSource, CharStream> Lexer._tokenFactorySourcePairprotected static final 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 CharStreamModifier and TypeMethodDescriptionstatic 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 CharStreamCreates aCharStreamgiven a path to a UTF-8 encoded file on disk.static CharStreamCreates 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) CommonToken.getInputStream()Lexer.getInputStream()LexerNoViableAltException.getInputStream()ListTokenSource.getInputStream()Get theCharStreamfrom which this token source is currently providing tokens.Token.getInputStream()Gets theCharStreamfrom which this token was derived.TokenSource.getInputStream()Get theCharStreamfrom which this token source is currently providing tokens.Method parameters in org.antlr.v4.runtime with type arguments of type CharStreamModifier and TypeMethodDescriptionCommonTokenFactory.create(Pair<TokenSource, CharStream> source, int type, String text, int channel, int start, int stop, int line, int charPositionInLine) TokenFactory.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 CharStreamModifierConstructorDescriptionLexer(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 CharStreamModifierConstructorDescriptionCommonToken(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 CharStreamModifier and TypeMethodDescriptionprotected 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.LexerATNSimulator.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 CharStreamModifier and TypeMethodDescriptionRuleTagToken.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 -
Uses of CharStream in org.antlr.v4.tool
Methods in org.antlr.v4.tool with parameters of type CharStream
CharStreamsinterface.