public final class CycloMetric extends AbstractJavaOperationMetric
| Modifier and Type | Class and Description |
|---|---|
static class |
CycloMetric.CycloOption
Options for CYCLO.
|
| Constructor and Description |
|---|
CycloMetric() |
| Modifier and Type | Method and Description |
|---|---|
static int |
booleanExpressionComplexity(ASTExpression expr)
Evaluates the number of paths through a boolean expression.
|
double |
computeFor(ASTMethodOrConstructorDeclaration node,
MetricOptions options) |
supportsequals, hashCodepublic double computeFor(ASTMethodOrConstructorDeclaration node, MetricOptions options)
public static int booleanExpressionComplexity(ASTExpression expr)
&& and ||
operators appearing in the expression. This is used in the calculation of cyclomatic and n-path complexity.expr - Expression to analyseCopyright © 2002–2017 PMD. All rights reserved.