Package com.javacc.parser
Class ParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.javacc.parser.ParseException
- All Implemented Interfaces:
JavaCCConstants,Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.javacc.parser.JavaCCConstants
JavaCCConstants.LexicalState, JavaCCConstants.TokenType -
Field Summary
Fields inherited from interface com.javacc.parser.JavaCCConstants
BUF_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionParseException(JavaCCParser parser, String message) ParseException(JavaCCParser parser, EnumSet<JavaCCConstants.TokenType> expectedTypes, List<com.javacc.parser.JavaCCParser.NonTerminalCall> callStack) ParseException(Token token) ParseException(Token token, EnumSet<JavaCCConstants.TokenType> expectedTypes, List<com.javacc.parser.JavaCCParser.NonTerminalCall> callStack) ParseException(String message) -
Method Summary
Modifier and TypeMethodDescriptiongetToken()Returns the token which causes the parse error and null otherwise.voidMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ParseException
public ParseException() -
ParseException
public ParseException(Token token, EnumSet<JavaCCConstants.TokenType> expectedTypes, List<com.javacc.parser.JavaCCParser.NonTerminalCall> callStack) -
ParseException
-
ParseException
public ParseException(JavaCCParser parser, EnumSet<JavaCCConstants.TokenType> expectedTypes, List<com.javacc.parser.JavaCCParser.NonTerminalCall> callStack) -
ParseException
-
ParseException
-
-
Method Details
-
getMessage
- Overrides:
getMessagein classThrowable
-
getStackTrace
- Overrides:
getStackTracein classThrowable
-
printStackTrace
- Overrides:
printStackTracein classThrowable
-
getToken
Returns the token which causes the parse error and null otherwise.- Returns:
- the token which causes the parse error and null otherwise.
-