Package 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
-
-
Field Summary
Fields Modifier and Type Field Description intexpectingintmismatchTypeASTnodestatic intNOT_RANGEstatic intNOT_SETstatic intNOT_TOKENstatic intRANGEBitSetsetstatic intSETTokentokenstatic intTOKEN(package private) java.lang.String[]tokenNames(package private) java.lang.StringtokenTextintupper-
Fields inherited from class antlr.RecognitionException
column, fileName, line
-
-
Constructor Summary
Constructors Constructor Description MismatchedTokenException()Looking for AST wildcard, didn't find itMismatchedTokenException(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_, AST node_, BitSet set_, boolean matchNot)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_)MismatchedTokenException(java.lang.String[] tokenNames_, Token token_, BitSet set_, boolean matchNot, java.lang.String fileName_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMessage()Returns a clean error message (no line number/column information)-
Methods inherited from class antlr.RecognitionException
getColumn, getErrorMessage, getFilename, getLine, toString
-
-
-
-
Field Detail
-
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
-
-
Constructor Detail
-
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_)
-
-