JavaOperationMetric, net.sourceforge.pmd.lang.metrics.Metric<MethodLikeNode>public final class CycloMetric extends AbstractJavaOperationMetric
| Modifier and Type | Class | Description |
|---|---|---|
static class |
CycloMetric.CycloOption |
Options for CYCLO.
|
| Constructor | Description |
|---|---|
CycloMetric() |
| Modifier and Type | Method | Description |
|---|---|---|
static int |
booleanExpressionComplexity(ASTExpression expr) |
Evaluates the number of paths through a boolean expression.
|
double |
computeFor(MethodLikeNode node,
net.sourceforge.pmd.lang.metrics.MetricOptions options) |
supports, supportsequals, hashCodepublic double computeFor(MethodLikeNode node, net.sourceforge.pmd.lang.metrics.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–2018 PMD. All rights reserved.