public class MismatchedTokenException extends RecognitionException
Modifier and Type | Field and Description |
---|---|
int |
expecting |
int |
mismatchType |
AST |
node |
static int |
NOT_RANGE |
static int |
NOT_SET |
static int |
NOT_TOKEN |
static int |
RANGE |
BitSet |
set |
static int |
SET |
Token |
token |
static int |
TOKEN |
(package private) String[] |
tokenNames |
(package private) String |
tokenText |
int |
upper |
column, fileName, line
Constructor and Description |
---|
MismatchedTokenException()
Looking for AST wildcard, didn't find it
|
MismatchedTokenException(String[] tokenNames_,
AST node_,
BitSet set_,
boolean matchNot) |
MismatchedTokenException(String[] tokenNames_,
AST node_,
int expecting_,
boolean matchNot) |
MismatchedTokenException(String[] tokenNames_,
AST node_,
int lower,
int upper_,
boolean matchNot) |
MismatchedTokenException(String[] tokenNames_,
Token token_,
BitSet set_,
boolean matchNot,
String fileName_) |
MismatchedTokenException(String[] tokenNames_,
Token token_,
int expecting_,
boolean matchNot,
String fileName_) |
MismatchedTokenException(String[] tokenNames_,
Token token_,
int lower,
int upper_,
boolean matchNot,
String fileName_) |
Modifier and Type | Method and Description |
---|---|
String |
getMessage()
Returns a clean error message (no line number/column information)
|
getColumn, getErrorMessage, getFilename, getLine, toString
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
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
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 String getMessage()
getMessage
in class Throwable