Top Fields Constructors Methods
org.antlr.v4.runtime

public Class LexerNoViableAltException

extends RecognitionException
Class Inheritance
Imports
org.antlr.v4.runtime.atn.ATNConfigSet, org.antlr.v4.runtime.misc.Interval, .NotNull, .Nullable, .Utils, java.util.Locale

Field Summary

Modifier and TypeField and Description
private final ATNConfigSet
deadEndConfigs

Which configurations did we try at input.index() that couldn't match input.LA(1)?

private static final long
private final int
startIndex

Matching attempted at what input index?

Constructor Summary

AccessConstructor and Description
public
LexerNoViableAltException(Lexer lexer, CharStream input, int startIndex, ATNConfigSet deadEndConfigs)

Method Summary

Modifier and TypeMethod and Description
public ATNConfigSet
public CharStream
getInputStream()

Overrides org.antlr.v4.runtime.RecognitionException.getInputStream.

Gets the input stream which is the symbol source for the recognizer where this exception was thrown.
public int
public String
toString()

Overrides java.lang.Throwable.toString.

Returns a short description of this throwable.
Inherited from org.antlr.v4.runtime.RecognitionException:
getContextgetExpectedTokensgetOffendingStategetOffendingTokengetOffendingTokengetRecognizersetOffendingStatesetOffendingToken

Field Detail

deadEndConfigsback to summary
private final ATNConfigSet deadEndConfigs

Which configurations did we try at input.index() that couldn't match input.LA(1)?

Annotations
@Nullable
serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.antlr.v4.runtime.RecognitionException.serialVersionUID.

startIndexback to summary
private final int startIndex

Matching attempted at what input index?

Constructor Detail

LexerNoViableAltExceptionback to summary
public LexerNoViableAltException(Lexer lexer, CharStream input, int startIndex, ATNConfigSet deadEndConfigs)

Method Detail

getDeadEndConfigsback to summary
public ATNConfigSet getDeadEndConfigs()
Annotations
@Nullable
getInputStreamback to summary
public CharStream getInputStream()

Overrides org.antlr.v4.runtime.RecognitionException.getInputStream.

Doc from org.antlr.v4.runtime.RecognitionException.getInputStream.

Gets the input stream which is the symbol source for the recognizer where this exception was thrown.

If the input stream is not available, this method returns null.

Returns:CharStream

The input stream which is the symbol source for the recognizer where this exception was thrown, or null if the stream is not available.

Annotations
@Override
getStartIndexback to summary
public int getStartIndex()
toStringback to summary
public String toString()

Overrides java.lang.Throwable.toString.

Doc from java.lang.Throwable.toString.

Returns a short description of this throwable. The result is the concatenation of:

  • the name of the class of this object
  • ": " (a colon and a space)
  • the result of invoking this object's getLocalizedMessage method
If getLocalizedMessage returns null, then just the class name is returned.
Returns:String

a string representation of this throwable.

Annotations
@Override