antlr
Class MismatchedTokenException

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

public class MismatchedTokenException
extends RecognitionException

Untamed:

See Also:
Serialized Form

Field Summary
 int expecting
          Enabled:
 int mismatchType
          Enabled:
 AST node
          Enabled:
static int NOT_RANGE
          Enabled:
static int NOT_SET
          Enabled:
static int NOT_TOKEN
          Enabled:
static int RANGE
          Enabled:
 BitSet set
          Enabled:
static int SET
          Enabled:
 Token token
          Enabled:
static int TOKEN
          Enabled:
(package private)  String[] tokenNames
           
(package private)  String tokenText
           
 int upper
          Enabled:
 
Fields inherited from class antlr.RecognitionException
column, fileName, line
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
MismatchedTokenException()
          Enabled: Looking for AST wildcard, didn't find it
MismatchedTokenException(String[] tokenNames_, AST node, BitSet set_, boolean matchNot)
          Enabled:
MismatchedTokenException(String[] tokenNames_, AST node, int expecting_, boolean matchNot)
          Enabled:
MismatchedTokenException(String[] tokenNames_, AST node, int lower, int upper_, boolean matchNot)
          Enabled:
MismatchedTokenException(String[] tokenNames_, Token token_, BitSet set_, boolean matchNot, String fileName)
          Enabled:
MismatchedTokenException(String[] tokenNames_, Token token_, int expecting_, boolean matchNot, String fileName)
          Enabled:
MismatchedTokenException(String[] tokenNames_, Token token_, int lower, int upper_, boolean matchNot, String fileName)
          Enabled:
 
Method Summary
 String getErrorMessage()
          Enabled: @deprecated As of ANTLR 2.7.0
 String getMessage()
          Enabled: Returns the error message that happened on the line/col given.
private  String tokenName(int tokenType)
           
 String toString()
          Suppressed: @return a string representation of this exception.
 
Methods inherited from class antlr.RecognitionException
getColumn, getFilename, getLine
 
Methods inherited from class java.lang.Throwable
backtrace, eStack, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, javaStack, leaf, printStackTrace, printStackTrace, printStackTrace, printThrowableOn, setStackTrace, unwrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

tokenNames

String[] tokenNames

token

public Token token
Enabled:


node

public AST node
Enabled:


tokenText

String tokenText

TOKEN

public static final int TOKEN
Enabled:


NOT_TOKEN

public static final int NOT_TOKEN
Enabled:


RANGE

public static final int RANGE
Enabled:


NOT_RANGE

public static final int NOT_RANGE
Enabled:


SET

public static final int SET
Enabled:


NOT_SET

public static final int NOT_SET
Enabled:


mismatchType

public int mismatchType
Enabled:


expecting

public int expecting
Enabled:


upper

public int upper
Enabled:


set

public BitSet set
Enabled:

Constructor Detail

MismatchedTokenException

public MismatchedTokenException()
Enabled: Looking for AST wildcard, didn't find it


MismatchedTokenException

public MismatchedTokenException(String[] tokenNames_,
                                AST node,
                                int lower,
                                int upper_,
                                boolean matchNot)
Enabled:


MismatchedTokenException

public MismatchedTokenException(String[] tokenNames_,
                                AST node,
                                int expecting_,
                                boolean matchNot)
Enabled:


MismatchedTokenException

public MismatchedTokenException(String[] tokenNames_,
                                AST node,
                                BitSet set_,
                                boolean matchNot)
Enabled:


MismatchedTokenException

public MismatchedTokenException(String[] tokenNames_,
                                Token token_,
                                int lower,
                                int upper_,
                                boolean matchNot,
                                String fileName)
Enabled:


MismatchedTokenException

public MismatchedTokenException(String[] tokenNames_,
                                Token token_,
                                int expecting_,
                                boolean matchNot,
                                String fileName)
Enabled:


MismatchedTokenException

public MismatchedTokenException(String[] tokenNames_,
                                Token token_,
                                BitSet set_,
                                boolean matchNot,
                                String fileName)
Enabled:

Method Detail

getErrorMessage

public String getErrorMessage()
Enabled: @deprecated As of ANTLR 2.7.0

Overrides:
getErrorMessage in class RecognitionException

getMessage

public String getMessage()
Enabled: Returns the error message that happened on the line/col given. Copied from toString().

Overrides:
getMessage in class Throwable
Returns:
the detail message string of this Throwable instance (which may be null).

tokenName

private String tokenName(int tokenType)

toString

public String toString()
Suppressed: @return a string representation of this exception.

Overrides:
toString in class RecognitionException
Returns:
a string representation of this throwable.


comments?