MCPcopy
hub / github.com/antlr/antlr4 / get

Method get

runtime/Java/src/org/antlr/v4/runtime/TokenStream.java:44–44  ·  view source on GitHub ↗

Gets the Token at the specified index in the stream. When the preconditions of this method are met, the return value is non-null. The preconditions for this method are the same as the preconditions of IntStream#seek. If the behavior of seek(index) is unspecified f

(int index)

Source from the content-addressed store, hash-verified

42 * retrieving the token at the specified index
43 */
44 public Token get(int index);
45
46 /**
47 * Gets the underlying {@link TokenSource} which provides tokens for this

Callers 15

RuntimeTestsClass · 0.65
runtimeTestsMethod · 0.65
prepareGrammarsMethod · 0.65
execParseMethod · 0.65
startMethod · 0.65
RuntimeTestUtilsClass · 0.65
getTextFromResourceMethod · 0.65
RuntimeRunnerMethod · 0.65
antlrOnStringMethod · 0.65
CustomDescriptorsClass · 0.65
CppRunnerClass · 0.65

Implementers 2

UnbufferedTokenStreamruntime/Java/src/org/antlr/v4/runtime/
BufferedTokenStreamruntime/Java/src/org/antlr/v4/runtime/

Calls

no outgoing calls

Tested by 15

runtimeTestsMethod · 0.52
prepareGrammarsMethod · 0.52
execParseMethod · 0.52
startMethod · 0.52
getTextFromResourceMethod · 0.52
RuntimeRunnerMethod · 0.52
antlrOnStringMethod · 0.52
getExecFileNameMethod · 0.52
compileMethod · 0.52
initRuntimeMethod · 0.52
initRuntimeMethod · 0.52