Package | Description |
---|---|
net.sourceforge.pmd.lang.metrics |
Modifier and Type | Field and Description |
---|---|
MetricOptions |
ParameterizedMetricKey.options
The options of the metric.
|
Modifier and Type | Method and Description |
---|---|
static MetricOptions |
MetricOptions.emptyOptions()
Returns an empty options bundle.
|
static MetricOptions |
MetricOptions.ofOptions(java.util.Collection<? extends MetricOption> options)
Gets an options bundle from a collection of options.
|
static MetricOptions |
MetricOptions.ofOptions(MetricOption option,
MetricOption... options)
Gets an options bundle from options.
|
Modifier and Type | Method and Description |
---|---|
double |
Metric.computeFor(N node,
MetricOptions options)
Actually computes the value of a metric for an 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.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.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.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.computeWithResultOption(MetricKey<O> key,
T node,
boolean force,
MetricOptions options,
ResultOption option,
ProjectMemoizer<T,O> stats)
Computes an aggregate result using a ResultOption.
|
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.
|
static <N extends Node> |
ParameterizedMetricKey.getInstance(MetricKey<N> key,
MetricOptions options)
Builds a parameterized metric key.
|
Copyright © 2002–2018 PMD. All rights reserved.