Class HideUtilityClassConstructorCheck.Details
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.checks.design.HideUtilityClassConstructorCheck.Details
-
- Enclosing class:
- HideUtilityClassConstructorCheck
private static class HideUtilityClassConstructorCheck.Details extends java.lang.Object
Details of class that are required for validation.
-
-
Field Summary
Fields Modifier and Type Field Description private DetailAST
ast
Class ast.private boolean
hasDefaultCtor
Result of details gathering.private boolean
hasMethodOrField
Result of details gathering.private boolean
hasNonPrivateStaticMethodOrField
Result of details gathering.private boolean
hasNonStaticMethodOrField
Result of details gathering.private boolean
hasPublicCtor
Result of details gathering.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
invoke()
Main method to gather statistics.boolean
isHasDefaultCtor()
Getter.boolean
isHasMethodOrField()
Getter.boolean
isHasNonPrivateStaticMethodOrField()
Getter.boolean
isHasNonStaticMethodOrField()
Getter.boolean
isHasPublicCtor()
Getter.
-
-
-
Field Detail
-
ast
private final DetailAST ast
Class ast.
-
hasMethodOrField
private boolean hasMethodOrField
Result of details gathering.
-
hasNonStaticMethodOrField
private boolean hasNonStaticMethodOrField
Result of details gathering.
-
hasNonPrivateStaticMethodOrField
private boolean hasNonPrivateStaticMethodOrField
Result of details gathering.
-
hasDefaultCtor
private boolean hasDefaultCtor
Result of details gathering.
-
hasPublicCtor
private boolean hasPublicCtor
Result of details gathering.
-
-
Constructor Detail
-
Details
Details(DetailAST ast)
C-tor.- Parameters:
ast
- class ast
-
-
Method Detail
-
isHasMethodOrField
public boolean isHasMethodOrField()
Getter.- Returns:
- boolean
-
isHasNonStaticMethodOrField
public boolean isHasNonStaticMethodOrField()
Getter.- Returns:
- boolean
-
isHasNonPrivateStaticMethodOrField
public boolean isHasNonPrivateStaticMethodOrField()
Getter.- Returns:
- boolean
-
isHasDefaultCtor
public boolean isHasDefaultCtor()
Getter.- Returns:
- boolean
-
isHasPublicCtor
public boolean isHasPublicCtor()
Getter.- Returns:
- boolean
-
invoke
public void invoke()
Main method to gather statistics.
-
-