com.puppycrawl.tools.checkstyle.checks.coding

Class NestedIfDepthCheck

public final class NestedIfDepthCheck extends AbstractNestedDepthCheck

Restricts nested if-else blocks to a specified depth (default = 1).

Author: Simon Harris

Constructor Summary
NestedIfDepthCheck()
Creates new check instance with default allowed nesting depth.
Method Summary
int[]getDefaultTokens()
voidleaveToken(DetailAST aAST)
voidvisitToken(DetailAST aAST)

Constructor Detail

NestedIfDepthCheck

public NestedIfDepthCheck()
Creates new check instance with default allowed nesting depth.

Method Detail

getDefaultTokens

public int[] getDefaultTokens()
{@inheritDoc }

leaveToken

public void leaveToken(DetailAST aAST)
{@inheritDoc }

visitToken

public void visitToken(DetailAST aAST)
{@inheritDoc }