antlr

Class MismatchedTokenException

public class MismatchedTokenException extends RecognitionException

Field Summary
intexpecting
intmismatchType
ASTnode
static intNOT_RANGE
static intNOT_SET
static intNOT_TOKEN
static intRANGE
BitSetset
static intSET
Tokentoken
String[]tokenNames
StringtokenText
static intTOKEN
intupper
Constructor Summary
MismatchedTokenException()
Looking for AST wildcard, didn't find it
MismatchedTokenException(String[] tokenNames_, AST node_, int lower, int upper_, boolean matchNot)
MismatchedTokenException(String[] tokenNames_, AST node_, int expecting_, boolean matchNot)
MismatchedTokenException(String[] tokenNames_, AST node_, BitSet set_, boolean matchNot)
MismatchedTokenException(String[] tokenNames_, Token token_, int lower, int upper_, boolean matchNot, String fileName_)
MismatchedTokenException(String[] tokenNames_, Token token_, int expecting_, boolean matchNot, String fileName_)
MismatchedTokenException(String[] tokenNames_, Token token_, BitSet set_, boolean matchNot, String fileName_)
Method Summary
StringgetMessage()
Returns a clean error message (no line number/column information)

Field Detail

expecting

public int expecting

mismatchType

public int mismatchType

node

public AST node

NOT_RANGE

public static final int NOT_RANGE

NOT_SET

public static final int NOT_SET

NOT_TOKEN

public static final int NOT_TOKEN

RANGE

public static final int RANGE

set

public BitSet set

SET

public static final int SET

token

public Token token

tokenNames

String[] tokenNames

tokenText

String tokenText

TOKEN

public static final int TOKEN

upper

public int upper

Constructor Detail

MismatchedTokenException

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

MismatchedTokenException

public MismatchedTokenException(String[] tokenNames_, AST node_, int lower, int upper_, boolean matchNot)

MismatchedTokenException

public MismatchedTokenException(String[] tokenNames_, AST node_, int expecting_, boolean matchNot)

MismatchedTokenException

public MismatchedTokenException(String[] tokenNames_, AST node_, BitSet set_, boolean matchNot)

MismatchedTokenException

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

MismatchedTokenException

public MismatchedTokenException(String[] tokenNames_, Token token_, int expecting_, boolean matchNot, String fileName_)

MismatchedTokenException

public MismatchedTokenException(String[] tokenNames_, Token token_, BitSet set_, boolean matchNot, String fileName_)

Method Detail

getMessage

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