Class ExecutableStatementCountCheck.Context

java.lang.Object
com.puppycrawl.tools.checkstyle.checks.sizes.ExecutableStatementCountCheck.Context
Enclosing class:
ExecutableStatementCountCheck

private static final class ExecutableStatementCountCheck.Context extends Object
Class to encapsulate counting information about one member.
  • Field Details

    • ast

      private final DetailAST ast
      Member AST node.
    • count

      private int count
      Counter for context elements.
  • Constructor Details

    • Context

      private Context(DetailAST ast)
      Creates new member context.
      Parameters:
      ast - member AST node.
  • Method Details

    • 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.