org.codehaus.groovy.syntax
Class TokenMismatchException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.codehaus.groovy.GroovyException
              extended by org.codehaus.groovy.syntax.SyntaxException
                  extended by org.codehaus.groovy.syntax.TokenException
                      extended by org.codehaus.groovy.syntax.TokenMismatchException
All Implemented Interfaces:
java.io.Serializable, GroovyExceptionInterface

public class TokenMismatchException
extends TokenException

See Also:
Serialized Form

Field Summary
private  int expectedType
           
private  Token unexpectedToken
           
 
Constructor Summary
TokenMismatchException(Token token, int expectedType)
           
 
Method Summary
 int getExpectedType()
           
 Token getUnexpectedToken()
           
 
Methods inherited from class org.codehaus.groovy.syntax.TokenException
getEndColumn
 
Methods inherited from class org.codehaus.groovy.syntax.SyntaxException
getLine, getMessage, getSourceLocator, getStartColumn, getStartLine, setSourceLocator
 
Methods inherited from class org.codehaus.groovy.GroovyException
isFatal, setFatal
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

unexpectedToken

private final Token unexpectedToken

expectedType

private final int expectedType
Constructor Detail

TokenMismatchException

public TokenMismatchException(Token token,
                              int expectedType)
Method Detail

getUnexpectedToken

public Token getUnexpectedToken()

getExpectedType

public int getExpectedType()


Copyright © ${year} The Codehaus. All Rights Reserved.