antlr
Class NoViableAltException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--antlr.ANTLRException
                    |
                    +--antlr.RecognitionException
                          |
                          +--antlr.NoViableAltException
All Implemented Interfaces:
java.io.Serializable

public class NoViableAltException
extends RecognitionException

See Also:
Serialized Form

Field Summary
 AST node
           
 Token token
           
 
Fields inherited from class antlr.RecognitionException
column, fileName, line, tokenName
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
NoViableAltException(AST t)
           
NoViableAltException(Token t, java.lang.String fileName)
           
 
Method Summary
 java.lang.String getErrorMessage()
          Deprecated. As of ANTLR 2.7.0
 java.lang.String getMessage()
          Returns a clean error message (no line number/column information)
 java.lang.String toString()
          Returns a string representation of this exception.
 
Methods inherited from class antlr.RecognitionException
getColumn, getFilename, getLine
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

token

public Token token

node

public AST node
Constructor Detail

NoViableAltException

public NoViableAltException(AST t)

NoViableAltException

public NoViableAltException(Token t,
                            java.lang.String fileName)
Method Detail

getErrorMessage

public java.lang.String getErrorMessage()
Deprecated. As of ANTLR 2.7.0

Overrides:
getErrorMessage in class RecognitionException

getMessage

public java.lang.String getMessage()
Returns a clean error message (no line number/column information)

Overrides:
getMessage in class java.lang.Throwable

toString

public java.lang.String toString()
Returns a string representation of this exception.

Overrides:
toString in class RecognitionException