Class ExecutableStatementCountCheck.Context
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.checks.sizes.ExecutableStatementCountCheck.Context
-
- Enclosing class:
- ExecutableStatementCountCheck
private static class ExecutableStatementCountCheck.Context extends java.lang.Object
Class to encapsulate counting information about one member.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCount(int addition)
Increase count.DetailAST
getAST()
Gets the member AST node.int
getCount()
Gets the count.
-
-
-
Field Detail
-
ast
private final DetailAST ast
Member AST node.
-
count
private int count
Counter for context elements.
-
-
Constructor Detail
-
Context
Context(DetailAST ast)
Creates new member context.- Parameters:
ast
- member AST node.
-
-
Method Detail
-
addCount
public void addCount(int addition)
Increase count.- Parameters:
addition
- the count increment.
-
getAST
public DetailAST getAST()
Gets the member AST node.- Returns:
- the member AST node.
-
getCount
public int getCount()
Gets the count.- Returns:
- the count.
-
-