public final class NcssMetric extends AbstractMetric implements ClassMetric, OperationMetric
LocMetric
Metric.Version
Constructor and Description |
---|
NcssMetric() |
Modifier and Type | Method and Description |
---|---|
double |
computeFor(ASTClassOrInterfaceDeclaration node,
MetricVersion version)
Actually computes the value of a metric for an AST node.
|
double |
computeFor(ASTMethodOrConstructorDeclaration node,
MetricVersion version)
Actually computes the value of a metric for an AST node.
|
boolean |
supports(AccessNode node)
Default implementation of the supports method, which filters out abstract nodes.
|
averageMetricOverOperations, findAllCalls, findOperations, getTopLevelPackageStats, highestMetricOverOperations, sumMetricOverOperations
public boolean supports(AccessNode node)
AbstractMetric
supports
in interface Metric
supports
in class AbstractMetric
node
- The node to check.public double computeFor(ASTClassOrInterfaceDeclaration node, MetricVersion version)
ClassMetric
computeFor
in interface ClassMetric
node
- The node.version
- The version of the metric.public double computeFor(ASTMethodOrConstructorDeclaration node, MetricVersion version)
OperationMetric
computeFor
in interface OperationMetric
node
- The node.version
- The version of the metric.Copyright © 2002–2017 PMD. All rights reserved.