public final class AtfdMetric extends AbstractMetric implements ClassMetric, OperationMetric
Metric.Version| Constructor and Description |
|---|
AtfdMetric() |
| 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, sumMetricOverOperationspublic boolean supports(AccessNode node)
AbstractMetricsupports in interface Metricsupports in class AbstractMetricnode - The node to check.public double computeFor(ASTMethodOrConstructorDeclaration node, MetricVersion version)
OperationMetriccomputeFor in interface OperationMetricnode - The node.version - The version of the metric.public double computeFor(ASTClassOrInterfaceDeclaration node, MetricVersion version)
ClassMetriccomputeFor in interface ClassMetricnode - The node.version - The version of the metric.Copyright © 2002–2017 PMD. All rights reserved.