public class CycloMetric extends AbstractApexOperationMetric
Constructor and Description |
---|
CycloMetric() |
Modifier and Type | Method and 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,
MetricOptions options) |
supports
equals, hashCode
public double computeFor(ASTMethod node, 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.