public final class EmptyLinesCheck extends AbstractCheck
We believe that comments and empty lines are evil. If you need to use an empty line in order to add a vertical separator of concepts - refactor your code and make it more cohesive and readable. The bottom line is that every method should look solid and do just one thing. This class is thread safe. It relies on building a list of line ranges by visiting each method definition and each anonymous inner type. It stores these references in a non-static thread local.
AutomaticBean.OutputStreamOptions| Constructor and Description |
|---|
EmptyLinesCheck() |
| Modifier and Type | Method and Description |
|---|---|
void |
finishTree(DetailAST root) |
int[] |
getAcceptableTokens() |
int[] |
getDefaultTokens() |
int[] |
getRequiredTokens() |
void |
visitToken(DetailAST ast) |
beginTree, clearMessages, destroy, getClassLoader, getFileContents, getLine, getLines, getMessages, getTabWidth, getTokenNames, init, isCommentNodesRequired, leaveToken, log, log, log, setClassLoader, setFileContents, setTabWidth, setTokensfinishLocalSetup, getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, setId, setSeverityconfigure, contextualize, getConfiguration, setupChildpublic int[] getDefaultTokens()
getDefaultTokens in class AbstractCheckpublic int[] getAcceptableTokens()
getAcceptableTokens in class AbstractCheckpublic int[] getRequiredTokens()
getRequiredTokens in class AbstractCheckpublic void visitToken(DetailAST ast)
visitToken in class AbstractCheckpublic void finishTree(DetailAST root)
finishTree in class AbstractCheckCopyright © 2011–2019 Qulice.com. All rights reserved.