Package org.antlr.runtime
Class MismatchedTokenException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.antlr.runtime.RecognitionException
-
- org.antlr.runtime.MismatchedTokenException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MissingTokenException
,UnwantedTokenException
public class MismatchedTokenException extends RecognitionException
A mismatched char or Token or tree node- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description int
expecting
-
Fields inherited from class org.antlr.runtime.RecognitionException
approximateLineInfo, c, charPositionInLine, index, input, line, node, token
-
-
Constructor Summary
Constructors Constructor Description MismatchedTokenException()
Used for remote debugger deserializationMismatchedTokenException(int expecting, IntStream input)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
-
Methods inherited from class org.antlr.runtime.RecognitionException
extractInformationFromTreeNodeStream, getUnexpectedType
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
MismatchedTokenException
public MismatchedTokenException()
Used for remote debugger deserialization
-
MismatchedTokenException
public MismatchedTokenException(int expecting, IntStream input)
-
-