private class BooleanExpressionComplexityCheck.Context
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
checking
Should we perform check in current context or not.
|
private int |
count
Count of boolean operators.
|
Constructor and Description |
---|
Context(boolean checking)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
checkCount(DetailAST ast)
Checks if we violates maximum allowed complexity.
|
boolean |
isChecking()
Getter for checking property.
|
void |
visitBooleanOperator()
Increases operator counter.
|
private final boolean checking
private int count
Context(boolean checking)
checking
- should we check in current context or not.public boolean isChecking()
public void visitBooleanOperator()
public void checkCount(DetailAST ast)
ast
- a node we check now.