|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--antlr.ANTLRException | +--antlr.RecognitionException | +--antlr.MismatchedTokenException
Untamed:
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 |
String[] tokenNames
public Token token
public AST node
String tokenText
public static final int TOKEN
public static final int NOT_TOKEN
public static final int RANGE
public static final int NOT_RANGE
public static final int SET
public static final int NOT_SET
public int mismatchType
public int expecting
public int upper
public BitSet set
Constructor Detail |
public MismatchedTokenException()
public MismatchedTokenException(String[] tokenNames_, AST node, int lower, int upper_, boolean matchNot)
public MismatchedTokenException(String[] tokenNames_, AST node, int expecting_, boolean matchNot)
public MismatchedTokenException(String[] tokenNames_, AST node, BitSet set_, boolean matchNot)
public MismatchedTokenException(String[] tokenNames_, Token token_, int lower, int upper_, boolean matchNot, String fileName)
public MismatchedTokenException(String[] tokenNames_, Token token_, int expecting_, boolean matchNot, String fileName)
public MismatchedTokenException(String[] tokenNames_, Token token_, BitSet set_, boolean matchNot, String fileName)
Method Detail |
public String getErrorMessage()
getErrorMessage
in class RecognitionException
public String getMessage()
getMessage
in class Throwable
private String tokenName(int tokenType)
public String toString()
toString
in class RecognitionException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |