com.puppycrawl.tools.checkstyle.checks.whitespace
public class TypecastParenPadCheck extends AbstractParenPadCheck
Checks the padding of parentheses for typecasts. That is whether a space is required after a left parenthesis and before a right parenthesis, or such spaces are forbidden.
The policy to verify is specified using the {@link PadOption} class and defaults to {@link PadOption#NOSPACE}.
An example of how to configure the check is:
<module name="TypecastParenPad"/>
An example of how to configure the check to require spaces for the parentheses of constructor, method, and super constructor invocations is:
<module name="TypecastParenPad"> <property name="option" value="space"/> </module>
Version: 1.0
Method Summary | |
---|---|
int[] | getDefaultTokens() {@inheritDoc} |
int[] | getRequiredTokens() {@inheritDoc} |
void | visitToken(DetailAST aAST) {@inheritDoc} |