com.puppycrawl.tools.checkstyle.checks.metrics
Class AbstractClassCouplingCheck
- Configurable, Contextualizable
public abstract class AbstractClassCouplingCheck
Base class for coupling calculation.
beginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getDefaultTokens, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens, visitToken |
getId, getMessageBundle, getSeverity, getSeverityLevel, log, log, log, log, log, log, log, log, log, log, log, setId, setSeverity |
AbstractClassCouplingCheck
protected AbstractClassCouplingCheck(int aDefaultMax)
Creates new instance of the check.
aDefaultMax - default value for allowed complexity.
getLogMessageId
protected abstract String getLogMessageId()
- message key we use for log violations.
getMax
public final int getMax()
setMax
public final void setMax(int aMax)
Sets maximul allowed complexity.
aMax - allowed complexity.