public class JavaNCSSCheck extends Check
| Constructor and Description |
|---|
JavaNCSSCheck() |
| Modifier and Type | Method and Description |
|---|---|
void |
beginTree(DetailAST aRootAST)
Called before the starting to process a tree.
|
void |
finishTree(DetailAST aRootAST)
Called after finished processing a tree.
|
int[] |
getDefaultTokens()
Returns the default token a check is interested in.
|
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 |
setClassMaximum(int aClassMax)
Sets the maximum ncss for a class.
|
void |
setFileMaximum(int aFileMax)
Sets the maximum ncss for a file.
|
void |
setMethodMaximum(int aMethodMax)
Sets the maximum ncss for a method.
|
void |
visitToken(DetailAST aAST)
Called to process a token.
|
destroy, getAcceptableTokens, getClassLoader, getFileContents, getLines, getTabWidth, getTokenNames, init, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokensgetCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, log, setId, setSeverityconfigure, contextualize, finishLocalSetup, getConfiguration, setupChildpublic int[] getDefaultTokens()
CheckgetDefaultTokens in class CheckTokenTypespublic int[] getRequiredTokens()
CheckgetRequiredTokens in class CheckTokenTypespublic void beginTree(DetailAST aRootAST)
Checkpublic void visitToken(DetailAST aAST)
CheckvisitToken in class CheckaAST - the token to processpublic void leaveToken(DetailAST aAST)
CheckleaveToken in class CheckaAST - the token leavingpublic void finishTree(DetailAST aRootAST)
CheckfinishTree in class CheckaRootAST - the root of the treepublic void setFileMaximum(int aFileMax)
aFileMax - the maximum ncsspublic void setClassMaximum(int aClassMax)
aClassMax - the maximum ncsspublic void setMethodMaximum(int aMethodMax)
aMethodMax - the maximum ncssCopyright © 2001-2012. All Rights Reserved.