public abstract class AbstractClassCouplingCheck extends Check
DEFAULT_ERROR_SCORE, DEFAULT_INFO_SCORE, DEFAULT_WARNING_SCORE, mScoring, mViolationSize
修飾子 | コンストラクタと説明 |
---|---|
protected |
AbstractClassCouplingCheck(int aDefaultMax)
Creates new instance of the check.
|
修飾子とタイプ | メソッドと説明 |
---|---|
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, setTokens
calculateScore, getCustomMessages, getErrorScore, getId, getInfoScore, getMessageBundle, getScore, getScoring, getSeverity, getSeverityLevel, getWarningScore, log, setErrorScore, setId, setInfoScore, setScore, setScoring, setSeverity, setWarningScore
configure, contextualize, finishLocalSetup, getConfiguration, setupChild
protected AbstractClassCouplingCheck(int aDefaultMax)
aDefaultMax
- default value for allowed complexity.public final int[] getDefaultTokens()
Check
getDefaultTokens
クラス内 Check
TokenTypes
public final int getMax()
public final void setMax(int aMax)
aMax
- allowed complexity.public final void beginTree(DetailAST aAST)
Check
protected abstract String getLogMessageId()
public void visitToken(DetailAST aAST)
Check
visitToken
クラス内 Check
aAST
- the token to processpublic void leaveToken(DetailAST aAST)
Check
leaveToken
クラス内 Check
aAST
- the token leavingCopyright © 2001-2013. All Rights Reserved.