com.puppycrawl.tools.checkstyle.checks.whitespace

Class TypecastParenPadCheck

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

Author: Oliver Burn

Method Summary
int[]getDefaultTokens()
{@inheritDoc}
int[]getRequiredTokens()
{@inheritDoc}
voidvisitToken(DetailAST aAST)
{@inheritDoc}

Method Detail

getDefaultTokens

public int[] getDefaultTokens()
{@inheritDoc}

getRequiredTokens

public int[] getRequiredTokens()
{@inheritDoc}

visitToken

public void visitToken(DetailAST aAST)
{@inheritDoc}