Class BooleanExpressionComplexityCheck.Context

    • Field Detail

      • checking

        private final boolean checking
        Should we perform check in current context or not. Usually false if we are inside equals() method.
      • count

        private int count
        Count of boolean operators.
    • Constructor Detail

      • Context

        private Context​(boolean checking)
        Creates new instance.
        Parameters:
        checking - should we check in current context or not.
    • Method Detail

      • isChecking

        public boolean isChecking()
        Getter for checking property.
        Returns:
        should we check in current context or not.
      • checkCount

        public void checkCount​(DetailAST ast)
        Checks if we violate maximum allowed complexity.
        Parameters:
        ast - a node we check now.