public final class ExecutableStatementCountCheck extends Check
Constructor and Description |
---|
ExecutableStatementCountCheck()
Constructs a
ExecutableStatementCountCheck . |
Modifier and Type | Method and Description |
---|---|
void |
beginTree(DetailAST aRootAST)
Called before the starting to process a tree.
|
int[] |
getDefaultTokens()
Returns the default token a check is interested in.
|
int |
getMax()
Gets the maximum threshold.
|
int[] |
getRequiredTokens()
The tokens that this check must be registered for.
|
void |
leaveToken(DetailAST aAST)
Called after all the child nodes have been process.
|
void |
setMax(int aMax)
Sets the maximum threshold.
|
void |
visitToken(DetailAST aAST)
Called to process a token.
|
destroy, finishTree, getAcceptableTokens, getClassLoader, getFileContents, getLines, getTabWidth, getTokenNames, init, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens
getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, log, setId, setSeverity
configure, contextualize, finishLocalSetup, getConfiguration, setupChild
public ExecutableStatementCountCheck()
ExecutableStatementCountCheck
.public int[] getDefaultTokens()
Check
getDefaultTokens
in class Check
TokenTypes
public int[] getRequiredTokens()
Check
getRequiredTokens
in class Check
TokenTypes
public int getMax()
public void setMax(int aMax)
aMax
- the maximum threshold.public void beginTree(DetailAST aRootAST)
Check
public void visitToken(DetailAST aAST)
Check
visitToken
in class Check
aAST
- the token to processpublic void leaveToken(DetailAST aAST)
Check
leaveToken
in class Check
aAST
- the token leavingCopyright © 2001-2014. All Rights Reserved.