Uses of Interface
net.sourceforge.pmd.lang.metrics.Metric
Packages that use Metric
Package
Description
Language-independent framework to represent code metrics.
-
Uses of Metric in net.sourceforge.pmd.lang.metrics
Methods in net.sourceforge.pmd.lang.metrics that return MetricModifier and TypeMethodDescriptiondefault @Nullable Metric<?, ?> LanguageMetricsProvider.getMetricWithName(String nameIgnoringCase) Fetch a metric using its name.Metric.of(BiFunction<? super T, MetricOptions, ? extends R> compute, Function<? super Node, ? extends @Nullable T> cast, @NonNull String fullName, String... aliases) Factory method for a metric.Methods in net.sourceforge.pmd.lang.metrics that return types with arguments of type MetricModifier and TypeMethodDescriptionLanguageMetricsProvider.computeAllMetricsFor(Node node) Computes all metrics available on the given node.LanguageMetricsProvider.getMetrics()Returns the set of all metrics supported by the language.Methods in net.sourceforge.pmd.lang.metrics with parameters of type MetricModifier and TypeMethodDescriptionMetric.compute(Metric<N, R> metric, Node node, MetricOptions options) Compute a metric on an arbitrary node, if possible.MetricsUtil.computeMetric(Metric<? super N, R> key, N node) Computes a metric identified by its code on a node, with the default options.MetricsUtil.computeMetric(Metric<? super N, R> key, N node, MetricOptions options) Computes a metric identified by its code on a node, possibly selecting a variant with theoptionsparameter.MetricsUtil.computeMetric(Metric<? super N, R> key, N node, MetricOptions options, boolean forceRecompute) Computes a metric identified by its code on a node, possibly selecting a variant with theoptionsparameter.static <O extends Node>
DoubleSummaryStatisticsMetricsUtil.computeStatistics(Metric<? super O, ?> key, Iterable<? extends O> ops) Computes statistics for the results of a metric over a sequence of nodes.static <O extends Node>
DoubleSummaryStatisticsMetricsUtil.computeStatistics(Metric<? super O, ?> key, Iterable<? extends O> ops, MetricOptions options) Computes statistics for the results of a metric over a sequence of nodes.static booleanMetricsUtil.supportsAll(Node node, Metric<?, ?>... metrics)