com.puppycrawl.tools.checkstyle.checks.indentation

Class CatchHandler

public class CatchHandler extends BlockParentHandler

Handler for catch blocks.

Author: jrichard

Constructor Summary
CatchHandler(IndentationCheck aIndentCheck, DetailAST aAst, ExpressionHandler aParent)
Construct an instance of this handler with the given indentation check, abstract syntax tree, and parent handler.
Method Summary
voidcheckIndentation()
Check the indentation of the expression we are handling.
protected booleantoplevelMustStartLine()
Determines if the top level token must start the line.

Constructor Detail

CatchHandler

public CatchHandler(IndentationCheck aIndentCheck, DetailAST aAst, ExpressionHandler aParent)
Construct an instance of this handler with the given indentation check, abstract syntax tree, and parent handler.

Parameters: aIndentCheck the indentation check aAst the abstract syntax tree aParent the parent handler

Method Detail

checkIndentation

public void checkIndentation()
Check the indentation of the expression we are handling.

toplevelMustStartLine

protected boolean toplevelMustStartLine()
Determines if the top level token must start the line.

Returns: false