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.ObjectDetails of class that are required for validation.
-
-
Field Summary
Fields Modifier and Type Field Description private DetailASTastClass ast.private booleanhasDefaultCtorResult of details gathering.private booleanhasMethodOrFieldResult of details gathering.private booleanhasNonPrivateStaticMethodOrFieldResult of details gathering.private booleanhasNonStaticMethodOrFieldResult of details gathering.private booleanhasPublicCtorResult of details gathering.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinvoke()Main method to gather statistics.booleanisHasDefaultCtor()Getter.booleanisHasMethodOrField()Getter.booleanisHasNonPrivateStaticMethodOrField()Getter.booleanisHasNonStaticMethodOrField()Getter.booleanisHasPublicCtor()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.
-
-