org.antlr.runtime
Class UnwantedTokenException

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.UnwantedTokenException
All Implemented Interfaces:
java.io.Serializable

public class UnwantedTokenException
extends MismatchedTokenException

An extra token while parsing a TokenStream

See Also:
Serialized Form

Field Summary
 
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
UnwantedTokenException()
          Used for remote debugger deserialization
UnwantedTokenException(int expecting, IntStream input)
           
 
Method Summary
 Token getUnexpectedToken()
           
 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
 

Constructor Detail

UnwantedTokenException

public UnwantedTokenException()
Used for remote debugger deserialization


UnwantedTokenException

public UnwantedTokenException(int expecting,
                              IntStream input)
Method Detail

getUnexpectedToken

public Token getUnexpectedToken()

toString

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


Copyright © 2011. All Rights Reserved.