antlr

Class MismatchedTokenException


public class MismatchedTokenException
extends RecognitionException

Field Summary

static int
NOT_RANGE
static int
NOT_SET
static int
NOT_TOKEN
static int
RANGE
static int
SET
static int
TOKEN
int
expecting
int
mismatchType
AST
node
BitSet
set
Token
token
(package private) String[]
tokenNames
(package private) String
tokenText
int
upper

Fields inherited from class antlr.RecognitionException

column, fileName, line

Constructor Summary

MismatchedTokenException()
Looking for AST wildcard, didn't find it
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_)
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)

Method Summary

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

Methods inherited from class antlr.RecognitionException

getColumn, getErrorMessage, getFilename, getLine, toString

Field Details

NOT_RANGE

public static final int NOT_RANGE

Field Value:
4


NOT_SET

public static final int NOT_SET

Field Value:
6


NOT_TOKEN

public static final int NOT_TOKEN

Field Value:
2


RANGE

public static final int RANGE

Field Value:
3


SET

public static final int SET

Field Value:
5


TOKEN

public static final int TOKEN

Field Value:
1


expecting

public int expecting


mismatchType

public int mismatchType


node

public AST node


set

public BitSet set


token

public Token token


tokenNames

(package private)  String[] tokenNames


tokenText

(package private)  String tokenText


upper

public int upper

Constructor Details

MismatchedTokenException

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


MismatchedTokenException

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


MismatchedTokenException

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


MismatchedTokenException

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


MismatchedTokenException

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


MismatchedTokenException

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


MismatchedTokenException

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

Method Details

getMessage

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