public class DeclarationOrderCheck extends Check
Checks that the parts of a class or interface declaration appear in the order suggested by the Code Conventions for the Java Programming Language.
An example of how to configure the check is:
<module name="DeclarationOrder"/>
DEFAULT_ERROR_SCORE, DEFAULT_INFO_SCORE, DEFAULT_WARNING_SCORE, mScoring, mViolationSize
コンストラクタと説明 |
---|
DeclarationOrderCheck() |
修飾子とタイプ | メソッドと説明 |
---|---|
int[] |
getDefaultTokens()
Returns the default token a check is interested in.
|
void |
leaveToken(DetailAST aAST)
Called after all the child nodes have been process.
|
void |
setIgnoreConstructors(boolean aIgnoreConstructors)
Sets whether to ignore constructors.
|
void |
setIgnoreMethods(boolean aIgnoreMethods)
Sets whether to ignore methods.
|
void |
setIgnoreModifiers(boolean aIgnoreModifiers)
Sets whether to ignore modifiers.
|
void |
visitToken(DetailAST aAST)
Called to process a token.
|
beginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getFileContents, getLines, getRequiredTokens, 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 void visitToken(DetailAST aAST)
Check
visitToken
クラス内 Check
aAST
- the token to processpublic void leaveToken(DetailAST aAST)
Check
leaveToken
クラス内 Check
aAST
- the token leavingpublic void setIgnoreConstructors(boolean aIgnoreConstructors)
aIgnoreConstructors
- whether to ignore constructors.public void setIgnoreMethods(boolean aIgnoreMethods)
aIgnoreMethods
- whether to ignore methods.public void setIgnoreModifiers(boolean aIgnoreModifiers)
aIgnoreModifiers
- whether to ignore modifiers.Copyright © 2001-2013. All Rights Reserved.