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

Method LT

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

Get the Token instance associated with the value returned by #LA LA(k). This method has the same pre- and post-conditions as IntStream#LA. In addition, when the preconditions of this method are met, the return value is non-null and the value of LT(k).getType()==LA(k).

(int k)

Source from the content-addressed store, hash-verified

22 * @see IntStream#LA
23 */
24 public Token LT(int k);
25
26 /**
27 * Gets the {@link Token} at the specified {@code index} in the stream. When

Callers 15

getCurrentTokenMethod · 0.65
enterRuleMethod · 0.65
exitRuleMethod · 0.65
enterRecursionRuleMethod · 0.65
enterEveryRuleMethod · 0.65
exitEveryRuleMethod · 0.65
adaptivePredictMethod · 0.65
execATNMethod · 0.65
noViableAltMethod · 0.65
getMissingSymbolMethod · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by 3

testNoBufferingMethod · 0.52
testMarkStartMethod · 0.52
testMarkThenReleaseMethod · 0.52