com.puppycrawl.tools.checkstyle.checks.indentation

Class AssignHandler

public class AssignHandler extends BlockParentHandler

Handler for assignements.

Author: o_sukhodolsky

Constructor Summary
AssignHandler(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 booleanshouldIncreaseIndent()
IndentLevelsuggestedChildLevel(ExpressionHandler aChild)
{@inheritDoc}

Constructor Detail

AssignHandler

public AssignHandler(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.

shouldIncreaseIndent

protected boolean shouldIncreaseIndent()

Returns: true if indentation should be increased after fisrt line in checkLinesIndent() false otherwise

suggestedChildLevel

public IndentLevel suggestedChildLevel(ExpressionHandler aChild)
{@inheritDoc}