| Package | Description |
|---|---|
| net.sourceforge.pmd.lang.java.oom |
Object-Oriented Metrics module (Metrics framework).
|
| net.sourceforge.pmd.lang.java.oom.api |
| Modifier and Type | Method and Description |
|---|---|
protected static double |
AbstractMetric.averageMetricOverOperations(ASTClassOrInterfaceDeclaration node,
OperationMetricKey key,
MetricVersion version,
boolean includeNested)
Gets the average of the value of an operation metric over all operations in this class (excluding nested
classes).
|
static double |
Metrics.get(OperationMetricKey key,
ASTClassOrInterfaceDeclaration node,
MetricVersion version,
ResultOption option)
Compute the sum, average, or highest value of the operation metric on all operations of the class node.
|
static double |
Metrics.get(OperationMetricKey key,
ASTMethodOrConstructorDeclaration node)
Computes the standard version of the metric identified by the key on a operation AST node.
|
static double |
Metrics.get(OperationMetricKey key,
ASTMethodOrConstructorDeclaration node,
MetricVersion version)
Computes a metric identified by its key on a operation AST node.
|
protected static double |
AbstractMetric.highestMetricOverOperations(ASTClassOrInterfaceDeclaration node,
OperationMetricKey key,
MetricVersion version,
boolean includeNested)
Gets the highest value of an operation metric over all operations in this class (excluding nested classes).
|
protected static double |
AbstractMetric.sumMetricOverOperations(ASTClassOrInterfaceDeclaration node,
OperationMetricKey key,
MetricVersion version,
boolean includeNested)
Gets the sum of the value of an operation metric over all operations in this class (excluding nested classes).
|
| Modifier and Type | Method and Description |
|---|---|
static OperationMetricKey |
OperationMetricKey.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OperationMetricKey[] |
OperationMetricKey.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Copyright © 2002–2017 PMD. All rights reserved.