Class HideUtilityClassConstructorCheck.Details
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.checks.design.HideUtilityClassConstructorCheck.Details
-
- Enclosing class:
- HideUtilityClassConstructorCheck
private static final class HideUtilityClassConstructorCheck.Details extends 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
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
isHasNonPrivateStaticMethodOrField()
Getter.boolean
isHasNonStaticMethodOrField()
Getter.boolean
isHasPublicCtor()
Getter.
-
-
-
Field Detail
-
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.
-
-
Method Detail
-
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.
-
-