Top Description Fields Constructors Methods
org.antlr.runtime

public Class MissingTokenException

extends MismatchedTokenException
Class Inheritance

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.

Field Summary

Modifier and TypeField and Description
public Object
Inherited from org.antlr.runtime.MismatchedTokenException:
expecting

Constructor Summary

AccessConstructor and Description
public
MissingTokenException()

Used for remote debugger deserialization

public
MissingTokenException(int expecting, IntStream input, Object inserted)

Method Summary

Modifier and TypeMethod and Description
public int
public String
toString()

Overrides org.antlr.runtime.MismatchedTokenException.toString.

Returns a short description of this throwable.

Field Detail

insertedback to summary
public Object inserted

Constructor Detail

MissingTokenExceptionback to summary
public MissingTokenException()

Used for remote debugger deserialization

MissingTokenExceptionback to summary
public MissingTokenException(int expecting, IntStream input, Object inserted)

Method Detail

getMissingTypeback to summary
public int getMissingType()
toStringback to summary
public String toString()

Overrides org.antlr.runtime.MismatchedTokenException.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