Package org.antlr.runtime
Class MissingTokenException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.antlr.runtime.RecognitionException
org.antlr.runtime.MismatchedTokenException
org.antlr.runtime.MissingTokenException
- All Implemented Interfaces:
Serializable
We were expecting a token but it's not found. The current token
is actually what we wanted next. Used for tree node errors too.
- See Also:
-
Field Summary
FieldsFields inherited from class org.antlr.runtime.MismatchedTokenException
expecting
Fields inherited from class org.antlr.runtime.RecognitionException
approximateLineInfo, c, charPositionInLine, index, input, line, node, token
-
Constructor Summary
ConstructorsConstructorDescriptionUsed for remote debugger deserializationMissingTokenException
(int expecting, IntStream input, Object inserted) -
Method Summary
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
-
Field Details
-
inserted
-
-
Constructor Details
-
MissingTokenException
public MissingTokenException()Used for remote debugger deserialization -
MissingTokenException
-
-
Method Details
-
getMissingType
public int getMissingType() -
toString
- Overrides:
toString
in classMismatchedTokenException
-