com.puppycrawl.tools.checkstyle.checks.metrics
Class AbstractClassCouplingCheck
- Configurable, Contextualizable
public abstract class AbstractClassCouplingCheck
Base class for coupling calculation.
- 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 |
AbstractClassCouplingCheck
protected AbstractClassCouplingCheck(int aDefaultMax)
Creates new instance of the check.
aDefaultMax
- default value for allowed complexity.
beginTree
public final void beginTree(DetailAST aAST)
- beginTree in interface Check
getDefaultTokens
public final int[] getDefaultTokens()
- getDefaultTokens in interface Check
getLogMessageId
protected String getLogMessageId()
- message key we use for log violations.
getMax
public final int getMax()
- allowed complexity.
leaveToken
public void leaveToken(DetailAST aAST)
- leaveToken in interface Check
setMax
public final void setMax(int aMax)
Sets maximul allowed complexity.
aMax
- allowed complexity.
visitToken
public void visitToken(DetailAST aAST)
- visitToken in interface Check