Package | Description |
---|---|
net.sourceforge.pmd.lang.metrics |
Modifier and Type | Field | Description |
---|---|---|
MetricKey<N> |
ParameterizedMetricKey.key |
The metric key.
|
Modifier and Type | Method | Description |
---|---|---|
static <T extends Node> |
MetricKeyUtil.of(java.lang.String name,
Metric<T> metric) |
Creates a new metric key from its metric and name.
|
Modifier and Type | Method | Description |
---|---|---|
double |
AbstractMetricsComputer.computeForOperation(MetricKey<O> key,
O node,
boolean force,
MetricOptions options,
MetricMemoizer<O> memoizer) |
|
double |
AbstractMetricsFacade.computeForOperation(MetricKey<O> key,
O node,
MetricOptions options) |
Computes a metric identified by its key on a operation AST node.
|
double |
MetricsComputer.computeForOperation(MetricKey<O> key,
O node,
boolean force,
MetricOptions options,
MetricMemoizer<O> memoizer) |
Computes the value of a metric for an operation and stores the result in the OperationStats object.
|
double |
AbstractMetricsComputer.computeForType(MetricKey<T> key,
T node,
boolean force,
MetricOptions options,
MetricMemoizer<T> memoizer) |
|
double |
AbstractMetricsFacade.computeForType(MetricKey<T> key,
T node,
MetricOptions options) |
Computes a metric identified by its code on a class AST node, possibly selecting a variant with the
MetricOptions parameter. |
double |
MetricsComputer.computeForType(MetricKey<T> key,
T node,
boolean force,
MetricOptions options,
MetricMemoizer<T> memoizer) |
Computes the value of a metric for a class and stores the result in the ClassStats object.
|
double |
AbstractMetricsComputer.computeWithResultOption(MetricKey<O> key,
T node,
boolean force,
MetricOptions options,
ResultOption option,
ProjectMemoizer<T,O> stats) |
|
double |
AbstractMetricsFacade.computeWithResultOption(MetricKey<O> key,
T node,
MetricOptions options,
ResultOption resultOption) |
Compute the sum, average, or highest value of the operation metric on all operations of the class node.
|
double |
MetricsComputer.computeWithResultOption(MetricKey<O> key,
T node,
boolean force,
MetricOptions options,
ResultOption option,
ProjectMemoizer<T,O> stats) |
Computes an aggregate result using a ResultOption.
|
static <N extends Node> |
ParameterizedMetricKey.getInstance(MetricKey<N> key,
MetricOptions options) |
Builds a parameterized metric key.
|
Copyright © 2002–2018 PMD. All rights reserved.