com.puppycrawl.tools.checkstyle.checks.sizes

Class ExecutableStatementCountCheck

public final class ExecutableStatementCountCheck extends Check

Restricts the number of executable statements to a specified limit (default = 30).

Author: Simon Harris

Constructor Summary
ExecutableStatementCountCheck()
Constructs a ExecutableStatementCountCheck.
Method Summary
voidbeginTree(DetailAST aRootAST)
{@inheritDoc}
int[]getDefaultTokens()
{@inheritDoc}
intgetMax()
Gets the maximum threshold.
int[]getRequiredTokens()
{@inheritDoc}
voidleaveToken(DetailAST aAST)
{@inheritDoc}
voidsetMax(int aMax)
Sets the maximum threshold.
voidvisitToken(DetailAST aAST)
{@inheritDoc}

Constructor Detail

ExecutableStatementCountCheck

public ExecutableStatementCountCheck()
Constructs a ExecutableStatementCountCheck.

Method Detail

beginTree

public void beginTree(DetailAST aRootAST)
{@inheritDoc}

getDefaultTokens

public int[] getDefaultTokens()
{@inheritDoc}

getMax

public int getMax()
Gets the maximum threshold.

Returns: the maximum threshold.

getRequiredTokens

public int[] getRequiredTokens()
{@inheritDoc}

leaveToken

public void leaveToken(DetailAST aAST)
{@inheritDoc}

setMax

public void setMax(int aMax)
Sets the maximum threshold.

Parameters: aMax the maximum threshold.

visitToken

public void visitToken(DetailAST aAST)
{@inheritDoc}