public abstract class AbstractClassCouplingCheck extends Check
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractClassCouplingCheck(int defaultMax)
Creates new instance of the check.
|
| Modifier and Type | Method and Description |
|---|---|
void |
beginTree(DetailAST ast)
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 ast)
Called after all the child nodes have been process.
|
void |
setExcludedClasses(String[] excludedClasses)
Sets user-excluded classes to ignore.
|
void |
setMax(int max)
Sets maximum allowed complexity.
|
void |
visitToken(DetailAST ast)
Called to process a token.
|
destroy, finishTree, getAcceptableTokens, getClassLoader, getFileContents, getLine, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, isCommentNodesRequired, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokensgetCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, log, setId, setSeverityconfigure, contextualize, finishLocalSetup, getConfiguration, setupChildprotected AbstractClassCouplingCheck(int defaultMax)
defaultMax - default value for allowed complexity.public final int[] getDefaultTokens()
CheckgetDefaultTokens in class CheckTokenTypespublic final int getMax()
public final void setMax(int max)
max - allowed complexity.public final void setExcludedClasses(String[] excludedClasses)
excludedClasses - the list of classes to ignore.public final void beginTree(DetailAST ast)
Checkprotected abstract String getLogMessageId()
public void visitToken(DetailAST ast)
CheckvisitToken in class Checkast - the token to processpublic void leaveToken(DetailAST ast)
CheckleaveToken in class Checkast - the token leavingCopyright © 2001–2015. All rights reserved.