Class BooleanExpressionComplexityCheck.Context
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.checks.metrics.BooleanExpressionComplexityCheck.Context
-
- Enclosing class:
- BooleanExpressionComplexityCheck
private final class BooleanExpressionComplexityCheck.Context extends Object
Represents context (method/expression) in which we check complexity.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Context(boolean checking)
Creates new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkCount(DetailAST ast)
Checks if we violate maximum allowed complexity.boolean
isChecking()
Getter for checking property.void
visitBooleanOperator()
Increases operator counter.
-
-
-
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.
-
visitBooleanOperator
public void visitBooleanOperator()
Increases operator counter.
-
checkCount
public void checkCount(DetailAST ast)
Checks if we violate maximum allowed complexity.- Parameters:
ast
- a node we check now.
-
-