Uses of Class
net.sourceforge.pmd.lang.metrics.MetricOptions
-
Packages that use MetricOptions Package Description net.sourceforge.pmd.lang.metrics 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 MetricOptions Modifier and Type Method Description static 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 MetricOptions Modifier and Type Method Description static <N extends Node,R extends Number>
@Nullable RMetric. compute(Metric<N,R> metric, Node node, MetricOptions options)Compute a metric on an arbitrary node, if possible.RMetric. computeFor(N node, MetricOptions options)Computes the value of the metric for the given node.static <N extends Node,R extends Number>
RMetricsUtil. 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.static <N extends Node,R extends Number>
RMetricsUtil. 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 MetricOptions Modifier and Type Method Description static <T extends Node,R extends Number>
Metric<T,R>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.
-