Uses of Interface
net.sourceforge.pmd.lang.metrics.MetricKey
-
Packages that use MetricKey Package Description net.sourceforge.pmd.lang.metrics net.sourceforge.pmd.lang.metrics.internal -
-
Uses of MetricKey in net.sourceforge.pmd.lang.metrics
Fields in net.sourceforge.pmd.lang.metrics declared as MetricKey Modifier and Type Field Description MetricKey<N>
ParameterizedMetricKey. key
The metric key.Methods in net.sourceforge.pmd.lang.metrics that return MetricKey Modifier and Type Method Description static <T extends Node>
MetricKey<T>MetricKeyUtil. of(java.lang.String name, Metric<T> metric)
Creates a new metric key from its metric and name.Methods in net.sourceforge.pmd.lang.metrics that return types with arguments of type MetricKey Modifier and Type Method Description java.util.Map<MetricKey<?>,java.lang.Double>
LanguageMetricsProvider. computeAllMetricsFor(Node node)
Computes all metrics available on the given node.java.util.List<? extends MetricKey<O>>
LanguageMetricsProvider. getAvailableOperationMetrics()
Returns a list of all supported operation metric keys for the language.java.util.List<? extends MetricKey<T>>
LanguageMetricsProvider. getAvailableTypeMetrics()
Returns a list of all supported type metric keys for the language.Methods in net.sourceforge.pmd.lang.metrics with parameters of type MetricKey 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
LanguageMetricsProvider. computeForOperation(MetricKey<O> key, O node, MetricOptions options)
LikeMetricsComputer.computeForOperation(MetricKey, QualifiableNode, boolean, MetricOptions, MetricMemoizer)
but performs no memoisation.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 theMetricOptions
parameter.double
LanguageMetricsProvider. computeForType(MetricKey<T> key, T node, MetricOptions options)
LikeMetricsComputer.computeForType(MetricKey, QualifiableNode, boolean, MetricOptions, MetricMemoizer)
, but performs no memoisation.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
LanguageMetricsProvider. computeWithResultOption(MetricKey<O> key, T node, MetricOptions options, ResultOption option)
LikeMetricsComputer.computeWithResultOption(MetricKey, QualifiableNode, boolean, MetricOptions, ResultOption, ProjectMemoizer)
but performs no memoisation.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<N>ParameterizedMetricKey. getInstance(MetricKey<N> key, MetricOptions options)
Builds a parameterized metric key. -
Uses of MetricKey in net.sourceforge.pmd.lang.metrics.internal
Methods in net.sourceforge.pmd.lang.metrics.internal that return types with arguments of type MetricKey Modifier and Type Method Description java.util.Map<MetricKey<?>,java.lang.Double>
AbstractLanguageMetricsProvider. computeAllMetricsFor(Node node)
Methods in net.sourceforge.pmd.lang.metrics.internal with parameters of type MetricKey Modifier and Type Method Description double
AbstractLanguageMetricsProvider. computeForOperation(MetricKey<O> key, O node, MetricOptions options)
double
AbstractLanguageMetricsProvider. computeForType(MetricKey<T> key, T node, MetricOptions options)
double
AbstractLanguageMetricsProvider. computeWithResultOption(MetricKey<O> key, T node, MetricOptions options, ResultOption option)
-