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 DetailASTastClass ast.private booleanhasDefaultCtorResult 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.booleanisHasNonPrivateStaticMethodOrField()Getter.booleanisHasNonStaticMethodOrField()Getter.booleanisHasPublicCtor()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.
-
-