Uses of Class
net.sourceforge.pmd.lang.metrics.MetricOptions
Packages that use MetricOptions
Package
Description
Language-independent framework to represent code metrics.
-
Uses of MetricOptions in net.sourceforge.pmd.lang.metrics
Methods in net.sourceforge.pmd.lang.metrics that return MetricOptionsModifier and TypeMethodDescriptionstatic MetricOptionsMetricOptions.emptyOptions()Returns an empty options bundle.static MetricOptionsMetricOptions.ofOptions(Collection<? extends MetricOption> options) Gets an options bundle from a collection of options.static MetricOptionsMetricOptions.ofOptions(MetricOption option, MetricOption... options) Gets an options bundle from options.Methods in net.sourceforge.pmd.lang.metrics with parameters of type MetricOptionsModifier and TypeMethodDescriptionMetric.compute(Metric<N, R> metric, Node node, MetricOptions options) Compute a metric on an arbitrary node, if possible.Metric.computeFor(N node, MetricOptions options) Computes the value of the metric for the given node.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, MetricOptions options) Computes statistics for the results of a metric over a sequence of nodes.Method parameters in net.sourceforge.pmd.lang.metrics with type arguments of type MetricOptionsModifier and TypeMethodDescriptionMetric.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.