Top Description Fields Constructors Methods
org.antlr.runtime

public Class MismatchedTokenException

extends RecognitionException
Class Inheritance
Known Direct Subclasses
org.antlr.runtime.MissingTokenException, org.antlr.runtime.UnwantedTokenException

A mismatched char or Token or tree node

Field Summary

Modifier and TypeField and Description
public int
Inherited from org.antlr.runtime.RecognitionException:
approximateLineInfoccharPositionInLineindexinputlinenodetoken

Constructor Summary

AccessConstructor and Description
public
MismatchedTokenException()

Used for remote debugger deserialization

public
MismatchedTokenException(int expecting, IntStream input)

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Throwable.toString.

Returns a short description of this throwable.
Inherited from org.antlr.runtime.RecognitionException:
extractInformationFromTreeNodeStreamgetUnexpectedType

Field Detail

expectingback to summary
public int expecting

Constructor Detail

MismatchedTokenExceptionback to summary
public MismatchedTokenException()

Used for remote debugger deserialization

MismatchedTokenExceptionback to summary
public MismatchedTokenException(int expecting, IntStream input)

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Throwable.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