com.puppycrawl.tools.checkstyle.checks.metrics
Class ClassDataAbstractionCouplingCheck
- Configurable, Contextualizable
public final class ClassDataAbstractionCouplingCheck
This metric measures the number of instantiations of other classes
within the given class. This type of coupling is
not caused by inheritance or the object oriented paradigm.
Generally speaking, any abstract data type with other
abstract data types as members has data abstraction coupling; therefore,
if a class has a local variable that is an
instantiation (object) of another class, there is data abstraction coupling.
The higher the DAC, the more complex the
data structure (classes) of the system.
- Simon Harris
- o_sukhodolsky
beginTree , destroy , finishTree , getAcceptableTokens , getClassLoader , getDefaultTokens , getFileContents , getLines , getRequiredTokens , getTabWidth , getTokenNames , init , leaveToken , log , log , setClassLoader , setFileContents , setMessages , setTabWidth , setTokens , visitToken |
getMessageBundle , getSeverity , getSeverityLevel , log , log , log , log , log , log , log , log , log , log , log , setSeverity |
ClassDataAbstractionCouplingCheck
public ClassDataAbstractionCouplingCheck()
Creates bew instance of the check.
getRequiredTokens
public int[] getRequiredTokens()
- getRequiredTokens in interface Check