Class JavadocMethodCheck.ExceptionInfo
java.lang.Object
com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck.ExceptionInfo
- Enclosing class:
- JavadocMethodCheck
Stores useful information about declared exception.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DetailAST
AST node representing this exception.private final JavadocMethodCheck.ClassInfo
Class information associated with this exception.private boolean
Does the exception have throws tag associated with. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ExceptionInfo
(DetailAST ast, JavadocMethodCheck.ClassInfo classInfo) Creates new instance forFullIdent
. -
Method Summary
Modifier and TypeMethodDescriptionprivate DetailAST
getAst()
Gets the AST node representing this exception.private JavadocMethodCheck.Token
getName()
Gets exception name.private boolean
isFound()
Checks that the exception has throws tag associated with it.private void
setFound()
Mark that the exception has associated throws tag.
-
Field Details
-
ast
AST node representing this exception. -
classInfo
Class information associated with this exception. -
found
Does the exception have throws tag associated with.
-
-
Constructor Details
-
ExceptionInfo
Creates new instance forFullIdent
.- Parameters:
ast
- AST node representing this exceptionclassInfo
- class info
-
-
Method Details
-
getAst
Gets the AST node representing this exception.- Returns:
- the AST node representing this exception
-
setFound
Mark that the exception has associated throws tag. -
isFound
Checks that the exception has throws tag associated with it.- Returns:
- whether the exception has throws tag associated with
-
getName
Gets exception name.- Returns:
- exception's name
-