com.puppycrawl.tools.checkstyle.checks.indentation

Class MethodDefHandler

public class MethodDefHandler extends BlockParentHandler

Handler for method definitions.

Author: jrichard

Constructor Summary
MethodDefHandler(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 DetailASTgetToplevelAST()
There is no top level expression for this handler.

Constructor Detail

MethodDefHandler

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

getToplevelAST

protected DetailAST getToplevelAST()
There is no top level expression for this handler.

Returns: null