com.puppycrawl.tools.checkstyle.checks.whitespace
Class EmptyForIteratorPadCheck
- Configurable, Contextualizable
public class EmptyForIteratorPadCheck
Checks the padding of an empty for iterator; that is whether a
space is required at an empty for iterator, or such spaces are
forbidden. No check occurs if there is a line wrap at the iterator, as in
for (Iterator foo = very.long.line.iterator();
foo.hasNext();
)
The policy to verify is specified using the
PadOption
class and
defaults to
PadOption.NOSPACE
.
An example of how to configure the check is:
<module name="EmptyForIteratorPad"/>
Version:
- Rick Giles
beginTree , destroy , finishTree , getAcceptableTokens , getClassLoader , getDefaultTokens , getFileContents , getLines , getRequiredTokens , getTabWidth , getTokenNames , init , leaveToken , log , log , setClassLoader , setFileContents , setMessages , setTabWidth , setTokens , visitToken |
getMessageBundle , getSeverity , getSeverityLevel , log , log , log , log , log , log , log , log , log , log , log , setSeverity |
EmptyForIteratorPadCheck
public EmptyForIteratorPadCheck()
Sets the paren pad otion to nospace.
getDefaultTokens
public int[] getDefaultTokens()
- getDefaultTokens in interface Check
Check