public class DoubleSpacesCheck
extends com.puppycrawl.tools.checkstyle.api.Check
This check considers a whitespace characters only the one generated with the space bar button. All the other whitespace characters are not included ( example: \t\n\x0B\f\r).
Constructor and Description |
---|
DoubleSpacesCheck() |
Modifier and Type | Method and Description |
---|---|
void |
beginTree(com.puppycrawl.tools.checkstyle.api.DetailAST aRootAST) |
int[] |
getDefaultTokens() |
protected void |
handleViolation(int aLineNo,
String aLine,
int startCol) |
void |
processLines(List<String> aLines)
Process a set of lines looking for matches.
|
void |
setIgnoreComments(boolean ignoreComments)
Whether or not comments should be checked.
|
void |
setIgnoreStrings(boolean ignoreStrings)
Whether or not
String content should be checked. |
destroy, finishTree, getAcceptableTokens, getClassLoader, getFileContents, getLine, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, isCommentNodesRequired, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens, visitToken
getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, log, setId, setSeverity
public int[] getDefaultTokens()
getDefaultTokens
in class com.puppycrawl.tools.checkstyle.api.AbstractCheck
public void beginTree(com.puppycrawl.tools.checkstyle.api.DetailAST aRootAST)
beginTree
in class com.puppycrawl.tools.checkstyle.api.AbstractCheck
public void processLines(List<String> aLines)
aLines
- the lines to process.protected void handleViolation(int aLineNo, String aLine, int startCol)
public void setIgnoreComments(boolean ignoreComments)
ignoreComments
- if true, comments won't be checkedpublic void setIgnoreStrings(boolean ignoreStrings)
String
content should be checked.ignoreStrings
- if true, double spaces inside a String won't be checkedCopyright © 2006–2016 Hibernate. All rights reserved.