Java.target.apidocs.org.antlr.v4.runtime.NoViableAltException.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of antlr4-perf-testsuite Show documentation
Show all versions of antlr4-perf-testsuite Show documentation
The ANTLR 4 grammar compiler.
NoViableAltException (ANTLR 4 Runtime (Optimized) 4.13.1.3 API)
org.antlr.v4.runtime
Class NoViableAltException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.antlr.v4.runtime.RecognitionException
-
- org.antlr.v4.runtime.NoViableAltException
-
- All Implemented Interfaces:
- Serializable
public class NoViableAltException
extends RecognitionException
Indicates that the parser could not decide which of two or more paths
to take based upon the remaining input. It tracks the starting token
of the offending input and also knows where the parser was
in the various paths when the error. Reported by reportNoViableAlternative()
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors
Constructor and Description
NoViableAltException(Parser recognizer)
NoViableAltException(Recognizer<Token,?> recognizer,
TokenStream input,
Token startToken,
Token offendingToken,
ATNConfigSet deadEndConfigs,
ParserRuleContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
ATNConfigSet
getDeadEndConfigs()
Token
getStartToken()
-
Methods inherited from class org.antlr.v4.runtime.RecognitionException
getContext, getExpectedTokens, getInputStream, getOffendingState, getOffendingToken, getOffendingToken, getRecognizer, setOffendingState, setOffendingToken
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
Constructor Detail
-
NoViableAltException
public NoViableAltException(@NotNull
Parser recognizer)
-
NoViableAltException
public NoViableAltException(@NotNull
Recognizer<Token,?> recognizer,
@NotNull
TokenStream input,
@NotNull
Token startToken,
@NotNull
Token offendingToken,
@Nullable
ATNConfigSet deadEndConfigs,
@NotNull
ParserRuleContext ctx)
-
Method Detail
-
getStartToken
public Token getStartToken()
-
getDeadEndConfigs
@Nullable
public ATNConfigSet getDeadEndConfigs()
Copyright © 1992–2023 Daniel Sun. All rights reserved.