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
public class MissingTokenException extends MismatchedTokenException
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Object
inserted
-
Fields 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
Constructors Constructor Description MissingTokenException()
Used for remote debugger deserializationMissingTokenException(int expecting, IntStream input, Object inserted)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMissingType()
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
-
-
-
-
Field Detail
-
inserted
public Object inserted
-
-
Method Detail
-
getMissingType
public int getMissingType()
-
toString
public String toString()
- Overrides:
toString
in classMismatchedTokenException
-
-