public class EmptyLineAfterDefinitionCheck
extends com.puppycrawl.tools.checkstyle.api.AbstractCheck
The default configuration will check class, interface and enum definitions:
<module name="EmptyLineAfterDefinition"/>To limit which definitions are checked, you can configure the
tokens property with
CLASS_DEF, INTERFACE_DEF and
ENUM_DEF.
For example, the following configuration only checks class and interface definitions:
<module name="EmptyLineAfterDefinition">
<property name="tokens" value="CLASS_DEF, INTERFACE_DEF"/>
</module>
| Constructor and Description |
|---|
EmptyLineAfterDefinitionCheck() |
| Modifier and Type | Method and Description |
|---|---|
int[] |
getAcceptableTokens() |
int[] |
getDefaultTokens() |
int[] |
getRequiredTokens() |
void |
visitToken(com.puppycrawl.tools.checkstyle.api.DetailAST ast) |
beginTree, clearMessages, destroy, finishTree, getClassLoader, getFileContents, getLine, getLines, getMessages, getTabWidth, getTokenNames, init, isCommentNodesRequired, leaveToken, log, log, log, setClassLoader, setFileContents, setTabWidth, setTokensfinishLocalSetup, getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, setId, setSeveritypublic int[] getDefaultTokens()
getDefaultTokens in class com.puppycrawl.tools.checkstyle.api.AbstractCheckpublic int[] getAcceptableTokens()
getAcceptableTokens in class com.puppycrawl.tools.checkstyle.api.AbstractCheckpublic int[] getRequiredTokens()
getRequiredTokens in class com.puppycrawl.tools.checkstyle.api.AbstractCheckpublic void visitToken(com.puppycrawl.tools.checkstyle.api.DetailAST ast)
visitToken in class com.puppycrawl.tools.checkstyle.api.AbstractCheckCopyright © 2018 Atlassian. All rights reserved.