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