Class JavadocMethodCheck.ExceptionInfo
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck.ExceptionInfo
-
- Enclosing class:
- JavadocMethodCheck
private static class JavadocMethodCheck.ExceptionInfo extends java.lang.Object
Stores useful information about declared exception.
-
-
Field Summary
Fields Modifier and Type Field Description private AbstractTypeAwareCheck.AbstractClassInfo
classInfo
Class information associated with this exception.private boolean
found
Does the exception have throws tag associated with.
-
Constructor Summary
Constructors Constructor Description ExceptionInfo(AbstractTypeAwareCheck.AbstractClassInfo classInfo)
Creates new instance forFullIdent
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.Class<?>
getClazz()
Gets exception class.private AbstractTypeAwareCheck.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 Detail
-
classInfo
private final AbstractTypeAwareCheck.AbstractClassInfo classInfo
Class information associated with this exception.
-
found
private boolean found
Does the exception have throws tag associated with.
-
-
Constructor Detail
-
ExceptionInfo
ExceptionInfo(AbstractTypeAwareCheck.AbstractClassInfo classInfo)
Creates new instance forFullIdent
.- Parameters:
classInfo
- class info
-
-
Method Detail
-
setFound
private void setFound()
Mark that the exception has associated throws tag.
-
isFound
private boolean isFound()
Checks that the exception has throws tag associated with it.- Returns:
- whether the exception has throws tag associated with
-
getName
private AbstractTypeAwareCheck.Token getName()
Gets exception name.- Returns:
- exception's name
-
getClazz
private java.lang.Class<?> getClazz()
Gets exception class.- Returns:
- class for this exception
-
-