org.antlr.runtime
Class MissingTokenException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.antlr.runtime.RecognitionException
              extended by org.antlr.runtime.MismatchedTokenException
                  extended by org.antlr.runtime.MissingTokenException
All Implemented Interfaces:
java.io.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
 java.lang.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
MissingTokenException()
          Used for remote debugger deserialization
MissingTokenException(int expecting, IntStream input, java.lang.Object inserted)
           
 
Method Summary
 int getMissingType()
           
 java.lang.String toString()
           
 
Methods inherited from class org.antlr.runtime.RecognitionException
extractInformationFromTreeNodeStream, getUnexpectedType
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

inserted

public java.lang.Object inserted
Constructor Detail

MissingTokenException

public MissingTokenException()
Used for remote debugger deserialization


MissingTokenException

public MissingTokenException(int expecting,
                             IntStream input,
                             java.lang.Object inserted)
Method Detail

getMissingType

public int getMissingType()

toString

public java.lang.String toString()
Overrides:
toString in class MismatchedTokenException


Copyright © 2013. All Rights Reserved.