public abstract class AbstractClassCouplingCheck extends AbstractCheck
AutomaticBean.OutputStreamOptions| 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()
Returns message key we use for log violations.
|
void |
leaveToken(DetailAST ast)
Called after all the child nodes have been process.
|
void |
setExcludeClassesRegexps(String... from)
Setter to specify user-configured regular expressions to ignore classes.
|
void |
setExcludedClasses(String... excludedClasses)
Setter to specify user-configured class names to ignore.
|
void |
setExcludedPackages(String... excludedPackages)
Setter to specify user-configured packages to ignore.
|
void |
setMax(int max)
Setter to specify the maximum threshold allowed.
|
void |
visitToken(DetailAST ast)
Called to process a token.
|
clearMessages, destroy, finishTree, getAcceptableTokens, getFileContents, getLine, getLines, getMessages, getRequiredTokens, getTabWidth, getTokenNames, init, isCommentNodesRequired, log, log, log, setFileContents, setTabWidth, setTokensfinishLocalSetup, getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, setId, setSeverityconfigure, contextualize, getConfiguration, setupChildprotected AbstractClassCouplingCheck(int defaultMax)
defaultMax - default value for allowed complexity.protected abstract String getLogMessageId()
public final int[] getDefaultTokens()
AbstractCheckgetDefaultTokens in class AbstractCheckTokenTypespublic final void setMax(int max)
max - allowed complexity.public final void setExcludedClasses(String... excludedClasses)
excludedClasses - the list of classes to ignore.public void setExcludeClassesRegexps(String... from)
from - array representing regular expressions of classes to ignore.public final void setExcludedPackages(String... excludedPackages)
excludedPackages - the list of packages to ignore.public final void beginTree(DetailAST ast)
AbstractCheckbeginTree in class AbstractCheckast - the root of the treepublic void visitToken(DetailAST ast)
AbstractCheckvisitToken in class AbstractCheckast - the token to processpublic void leaveToken(DetailAST ast)
AbstractCheckleaveToken in class AbstractCheckast - the token leavingCopyright © 2001–2020. All rights reserved.