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, setTokens
getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, log, setId, setSeverity
configure, contextualize, finishLocalSetup, getConfiguration, setupChild
protected AbstractClassCouplingCheck(int defaultMax)
defaultMax
- default value for allowed complexity.public final int[] getDefaultTokens()
Check
getDefaultTokens
in class Check
TokenTypes
public 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)
Check
protected abstract String getLogMessageId()
public void visitToken(DetailAST ast)
Check
visitToken
in class Check
ast
- the token to processpublic void leaveToken(DetailAST ast)
Check
leaveToken
in class Check
ast
- the token leavingCopyright © 2001–2015. All rights reserved.