public class JavaNCSSCheck extends Check
DEFAULT_ERROR_SCORE, DEFAULT_INFO_SCORE, DEFAULT_WARNING_SCORE, mScoring, mViolationSize
コンストラクタと説明 |
---|
JavaNCSSCheck() |
修飾子とタイプ | メソッドと説明 |
---|---|
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, setTokens
calculateScore, getCustomMessages, getErrorScore, getId, getInfoScore, getMessageBundle, getScore, getScoring, getSeverity, getSeverityLevel, getWarningScore, log, setErrorScore, setId, setInfoScore, setScore, setScoring, setSeverity, setWarningScore
configure, contextualize, finishLocalSetup, getConfiguration, setupChild
public int[] getDefaultTokens()
Check
getDefaultTokens
クラス内 Check
TokenTypes
public int[] getRequiredTokens()
Check
getRequiredTokens
クラス内 Check
TokenTypes
public void beginTree(DetailAST aRootAST)
Check
public void visitToken(DetailAST aAST)
Check
visitToken
クラス内 Check
aAST
- the token to processpublic void leaveToken(DetailAST aAST)
Check
leaveToken
クラス内 Check
aAST
- the token leavingpublic void finishTree(DetailAST aRootAST)
Check
finishTree
クラス内 Check
aRootAST
- 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-2013. All Rights Reserved.