Package com.javacc.preprocessor
Class ParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.javacc.preprocessor.ParseException
- All Implemented Interfaces:
PreprocessorConstants,Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.javacc.preprocessor.PreprocessorConstants
PreprocessorConstants.LexicalState, PreprocessorConstants.TokenType -
Field Summary
Fields inherited from interface com.javacc.preprocessor.PreprocessorConstants
BUF_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionParseException(PreprocessorParser parser, String message) ParseException(PreprocessorParser parser, EnumSet<PreprocessorConstants.TokenType> expectedTypes, List<com.javacc.preprocessor.PreprocessorParser.NonTerminalCall> callStack) ParseException(Token token) ParseException(Token token, EnumSet<PreprocessorConstants.TokenType> expectedTypes, List<com.javacc.preprocessor.PreprocessorParser.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<PreprocessorConstants.TokenType> expectedTypes, List<com.javacc.preprocessor.PreprocessorParser.NonTerminalCall> callStack) -
ParseException
-
ParseException
public ParseException(PreprocessorParser parser, EnumSet<PreprocessorConstants.TokenType> expectedTypes, List<com.javacc.preprocessor.PreprocessorParser.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.
-