public final class WmcMetric extends AbstractMetric implements ClassMetric
CycloMetric
to quantify the complexity of a metric. [1]
[1] Lanza. Object-Oriented Metrics in Practice.
Metric.Version
Constructor and Description |
---|
WmcMetric() |
Modifier and Type | Method and Description |
---|---|
double |
computeFor(ASTClassOrInterfaceDeclaration node,
MetricVersion version)
Actually computes the value of a metric for an AST node.
|
averageMetricOverOperations, findAllCalls, findOperations, getTopLevelPackageStats, highestMetricOverOperations, sumMetricOverOperations, supports
public double computeFor(ASTClassOrInterfaceDeclaration node, MetricVersion version)
ClassMetric
computeFor
in interface ClassMetric
node
- The node.version
- The version of the metric.Copyright © 2002–2017 PMD. All rights reserved.