ApexOperationMetric, net.sourceforge.pmd.lang.metrics.Metric<ASTMethod>public class CycloMetric extends AbstractApexOperationMetric
| Constructor | Description |
|---|---|
CycloMetric() |
| Modifier and Type | Method | Description |
|---|---|---|
static int |
booleanExpressionComplexity(ASTStandardCondition expression) |
Computes the number of control flow paths through that expression, which is the number of
|| and
&& operators. |
double |
computeFor(ASTMethod node,
net.sourceforge.pmd.lang.metrics.MetricOptions options) |
supportspublic double computeFor(ASTMethod node, net.sourceforge.pmd.lang.metrics.MetricOptions options)
public static int booleanExpressionComplexity(ASTStandardCondition expression)
|| and
&& operators. Used both by Npath and Cyclo.expression - Boolean expressionCopyright © 2002–2018 PMD. All rights reserved.