| Package | Description |
|---|---|
| net.sourceforge.pmd.lang.java.oom |
Object-Oriented Metrics module (Metrics framework).
|
| net.sourceforge.pmd.lang.java.oom.api | |
| net.sourceforge.pmd.lang.java.oom.metrics | |
| net.sourceforge.pmd.lang.java.oom.rule |
| Modifier and Type | Field and Description |
|---|---|
MetricVersion |
ParameterizedMetricKey.version
The version of the metric.
|
| 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 ParameterizedMetricKey |
ParameterizedMetricKey.build(MetricKey<? extends Metric> key,
MetricVersion version)
Builds a parameterized metric key.
|
static double |
Metrics.get(ClassMetricKey key,
ASTClassOrInterfaceDeclaration node,
MetricVersion version)
Computes a metric identified by its code on a class AST node, possibly selecting a variant with the
MetricVersion parameter. |
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,
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 | Class and Description |
|---|---|
static class |
Metric.Version
Default metric version.
|
| Modifier and Type | Method and Description |
|---|---|
double |
ClassMetric.computeFor(ASTClassOrInterfaceDeclaration node,
MetricVersion version)
Actually computes the value of a metric for an AST node.
|
double |
OperationMetric.computeFor(ASTMethodOrConstructorDeclaration node,
MetricVersion version)
Actually computes the value of a metric for an AST node.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
CycloMetric.Version
Variants of CYCLO.
|
| Modifier and Type | Method and Description |
|---|---|
double |
WmcMetric.computeFor(ASTClassOrInterfaceDeclaration node,
MetricVersion version) |
double |
NcssMetric.computeFor(ASTClassOrInterfaceDeclaration node,
MetricVersion version) |
double |
LocMetric.computeFor(ASTClassOrInterfaceDeclaration node,
MetricVersion version) |
double |
CycloMetric.computeFor(ASTClassOrInterfaceDeclaration node,
MetricVersion version) |
double |
AtfdMetric.computeFor(ASTClassOrInterfaceDeclaration node,
MetricVersion version) |
double |
NcssMetric.computeFor(ASTMethodOrConstructorDeclaration node,
MetricVersion version) |
double |
LocMetric.computeFor(ASTMethodOrConstructorDeclaration node,
MetricVersion version) |
double |
CycloMetric.computeFor(ASTMethodOrConstructorDeclaration node,
MetricVersion version) |
double |
AtfdMetric.computeFor(ASTMethodOrConstructorDeclaration node,
MetricVersion version) |
| Modifier and Type | Field and Description |
|---|---|
static EnumeratedProperty<MetricVersion> |
CyclomaticComplexityRule.CYCLO_VERSION_DESCRIPTOR |
Copyright © 2002–2017 PMD. All rights reserved.