Package net.sourceforge.pmd.lang.ast
Class ParseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- net.sourceforge.pmd.lang.ast.FileAnalysisException
-
- net.sourceforge.pmd.lang.ast.ParseException
-
- All Implemented Interfaces:
Serializable
public class ParseException extends FileAnalysisException
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description @Nullable GenericToken
currentToken
This is the last token that has been consumed successfully.
-
Constructor Summary
Constructors Constructor Description ParseException()
ParseException(@NonNull JavaccToken currentTokenVal, int[][] expectedTokenSequencesVal)
This constructor is called by Javacc.ParseException(String message)
ParseException(String message, JavaccToken token)
ParseException(Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
errorKind()
-
Methods inherited from class net.sourceforge.pmd.lang.ast.FileAnalysisException
getFileName, getMessage, hasFileName, positionToString, setFileName, wrap
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
currentToken
public final @Nullable GenericToken currentToken
This is the last token that has been consumed successfully. If this object has been created due to a parse error, the token followng this token will (therefore) be the first error token.
-
-
Constructor Detail
-
ParseException
public ParseException()
-
ParseException
public ParseException(String message)
-
ParseException
public ParseException(Throwable cause)
-
ParseException
public ParseException(String message, JavaccToken token)
-
ParseException
public ParseException(@NonNull JavaccToken currentTokenVal, int[][] expectedTokenSequencesVal)
This constructor is called by Javacc.
-
-
Method Detail
-
errorKind
protected String errorKind()
- Overrides:
errorKind
in classFileAnalysisException
-
-