Class ExecutableStatementCountCheck.Context

  • Enclosing class:
    ExecutableStatementCountCheck

    private static class ExecutableStatementCountCheck.Context
    extends java.lang.Object
    Class to encapsulate counting information about one member.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private DetailAST ast
      Member AST node.
      private int count
      Counter for context elements.
    • Constructor Summary

      Constructors 
      Constructor Description
      Context​(DetailAST ast)
      Creates new member context.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.