com.puppycrawl.tools.checkstyle.checks.coding
Class DeclarationOrderCheck
- Configurable, Contextualizable
public class DeclarationOrderCheck
Checks that the parts of a class or interface declaration
appear in the order suggested by the
Code Conventions for the Java Programming Language.
- Class (static) variables. First the public class variables, then
the protected, then package level (no access modifier), and then
the private.
- Instance variables. First the public class variables, then
the protected, then package level (no access modifier), and then
the private.
- Constructors
- Methods
An example of how to configure the check is:
<module name="DeclarationOrder"/>
beginTree , destroy , finishTree , getAcceptableTokens , getClassLoader , getDefaultTokens , getFileContents , getLines , getRequiredTokens , getTabWidth , getTokenNames , init , leaveToken , log , log , setClassLoader , setFileContents , setMessages , setTabWidth , setTokens , visitToken |
getId , getMessageBundle , getSeverity , getSeverityLevel , log , log , log , log , log , log , log , log , log , log , log , setId , setSeverity |