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"/>
| Constructor and Description |
|---|
DeclarationOrderCheck() |
| Modifier and Type | Method and Description |
|---|---|
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, getLine, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, isCommentNodesRequired, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokensgetCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, log, setId, setSeverityconfigure, contextualize, finishLocalSetup, getConfiguration, setupChildpublic int[] getDefaultTokens()
CheckgetDefaultTokens in class CheckTokenTypespublic void visitToken(DetailAST aAST)
CheckvisitToken in class CheckaAST - the token to processpublic void leaveToken(DetailAST aAST)
CheckleaveToken in class CheckaAST - 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-2014. All Rights Reserved.