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. keyThe 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(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 Map<MetricKey<?>,Double>LanguageMetricsProvider. computeAllMetricsFor(Node node)Computes all metrics available on the given node.List<? extends MetricKey<O>>LanguageMetricsProvider. getAvailableOperationMetrics()Returns a list of all supported operation metric keys for the language.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 doubleAbstractMetricsComputer. computeForOperation(MetricKey<O> key, O node, boolean force, MetricOptions options, MetricMemoizer<O> memoizer)doubleAbstractMetricsFacade. computeForOperation(MetricKey<O> key, O node, MetricOptions options)Computes a metric identified by its key on a operation AST node.doubleLanguageMetricsProvider. computeForOperation(MetricKey<O> key, O node, MetricOptions options)LikeMetricsComputer.computeForOperation(MetricKey, QualifiableNode, boolean, MetricOptions, MetricMemoizer)but performs no memoisation.doubleMetricsComputer. 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.doubleAbstractMetricsComputer. computeForType(MetricKey<T> key, T node, boolean force, MetricOptions options, MetricMemoizer<T> memoizer)doubleAbstractMetricsFacade. 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 theMetricOptionsparameter.doubleLanguageMetricsProvider. computeForType(MetricKey<T> key, T node, MetricOptions options)LikeMetricsComputer.computeForType(MetricKey, QualifiableNode, boolean, MetricOptions, MetricMemoizer), but performs no memoisation.doubleMetricsComputer. 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.doubleAbstractMetricsComputer. computeWithResultOption(MetricKey<O> key, T node, boolean force, MetricOptions options, ResultOption option, ProjectMemoizer<T,O> stats)doubleAbstractMetricsFacade. 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.doubleLanguageMetricsProvider. computeWithResultOption(MetricKey<O> key, T node, MetricOptions options, ResultOption option)LikeMetricsComputer.computeWithResultOption(MetricKey, QualifiableNode, boolean, MetricOptions, ResultOption, ProjectMemoizer)but performs no memoisation.doubleMetricsComputer. 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 Map<MetricKey<?>,Double>AbstractLanguageMetricsProvider. computeAllMetricsFor(Node node)Methods in net.sourceforge.pmd.lang.metrics.internal with parameters of type MetricKey Modifier and Type Method Description doubleAbstractLanguageMetricsProvider. computeForOperation(MetricKey<O> key, O node, MetricOptions options)doubleAbstractLanguageMetricsProvider. computeForType(MetricKey<T> key, T node, MetricOptions options)doubleAbstractLanguageMetricsProvider. computeWithResultOption(MetricKey<O> key, T node, MetricOptions options, ResultOption option)
-