antlr
Class MismatchedTokenException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--antlr.ANTLRException
|
+--antlr.RecognitionException
|
+--antlr.MismatchedTokenException
- All Implemented Interfaces:
- java.io.Serializable
- public class MismatchedTokenException
- extends RecognitionException
- See Also:
- Serialized Form
Fields inherited from class java.lang.Exception |
|
Fields inherited from class java.lang.Throwable |
|
Constructor Summary |
MismatchedTokenException()
Looking for AST wildcard, didn't find it |
MismatchedTokenException(java.lang.String[] tokenNames_,
AST node,
BitSet set_,
boolean matchNot)
|
MismatchedTokenException(java.lang.String[] tokenNames_,
AST node,
int expecting_,
boolean matchNot)
|
MismatchedTokenException(java.lang.String[] tokenNames_,
AST node,
int lower,
int upper_,
boolean matchNot)
|
MismatchedTokenException(java.lang.String[] tokenNames_,
Token token_,
BitSet set_,
boolean matchNot,
java.lang.String fileName)
|
MismatchedTokenException(java.lang.String[] tokenNames_,
Token token_,
int expecting_,
boolean matchNot,
java.lang.String fileName)
|
MismatchedTokenException(java.lang.String[] tokenNames_,
Token token_,
int lower,
int upper_,
boolean matchNot,
java.lang.String fileName)
|
Method Summary |
java.lang.String |
getErrorMessage()
Deprecated. As of ANTLR 2.7.0 |
java.lang.String |
getMessage()
Returns the error message that happened on the line/col given. |
private java.lang.String |
tokenName(int tokenType)
|
java.lang.String |
toString()
|
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 |
tokenNames
java.lang.String[] tokenNames
token
public Token token
node
public AST node
tokenText
java.lang.String tokenText
TOKEN
public static final int TOKEN
- See Also:
- Constant Field Values
NOT_TOKEN
public static final int NOT_TOKEN
- See Also:
- Constant Field Values
RANGE
public static final int RANGE
- See Also:
- Constant Field Values
NOT_RANGE
public static final int NOT_RANGE
- See Also:
- Constant Field Values
SET
public static final int SET
- See Also:
- Constant Field Values
NOT_SET
public static final int NOT_SET
- See Also:
- Constant Field Values
mismatchType
public int mismatchType
expecting
public int expecting
upper
public int upper
set
public BitSet set
MismatchedTokenException
public MismatchedTokenException()
- Looking for AST wildcard, didn't find it
MismatchedTokenException
public MismatchedTokenException(java.lang.String[] tokenNames_,
AST node,
int lower,
int upper_,
boolean matchNot)
MismatchedTokenException
public MismatchedTokenException(java.lang.String[] tokenNames_,
AST node,
int expecting_,
boolean matchNot)
MismatchedTokenException
public MismatchedTokenException(java.lang.String[] tokenNames_,
AST node,
BitSet set_,
boolean matchNot)
MismatchedTokenException
public MismatchedTokenException(java.lang.String[] tokenNames_,
Token token_,
int lower,
int upper_,
boolean matchNot,
java.lang.String fileName)
MismatchedTokenException
public MismatchedTokenException(java.lang.String[] tokenNames_,
Token token_,
int expecting_,
boolean matchNot,
java.lang.String fileName)
MismatchedTokenException
public MismatchedTokenException(java.lang.String[] tokenNames_,
Token token_,
BitSet set_,
boolean matchNot,
java.lang.String fileName)
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 the error message that happened on the line/col given.
Copied from toString().
- Overrides:
getMessage
in class java.lang.Throwable
tokenName
private java.lang.String tokenName(int tokenType)
toString
public java.lang.String toString()
- Overrides:
toString
in class RecognitionException
- Returns:
- a string representation of this exception.