public abstract class AbstractClassCouplingCheck extends Check
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractClassCouplingCheck(int aDefaultMax)
Creates new instance of the check.
|
| Modifier and Type | Method and Description |
|---|---|
void |
beginTree(DetailAST aAST)
Called before the starting to process a tree.
|
int[] |
getDefaultTokens()
Returns the default token a check is interested in.
|
protected abstract String |
getLogMessageId() |
int |
getMax() |
void |
leaveToken(DetailAST aAST)
Called after all the child nodes have been process.
|
void |
setMax(int aMax)
Sets maximul allowed complexity.
|
void |
visitToken(DetailAST aAST)
Called to process a token.
|
destroy, finishTree, getAcceptableTokens, getClassLoader, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokensgetCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, log, setId, setSeverityconfigure, contextualize, finishLocalSetup, getConfiguration, setupChildprotected AbstractClassCouplingCheck(int aDefaultMax)
aDefaultMax - default value for allowed complexity.public final int[] getDefaultTokens()
CheckgetDefaultTokens in class CheckTokenTypespublic final int getMax()
public final void setMax(int aMax)
aMax - allowed complexity.public final void beginTree(DetailAST aAST)
Checkprotected abstract String getLogMessageId()
public void visitToken(DetailAST aAST)
CheckvisitToken in class CheckaAST - the token to processpublic void leaveToken(DetailAST aAST)
CheckleaveToken in class CheckaAST - the token leavingCopyright © 2001-2012. All Rights Reserved.