Class ApexMetrics
- java.lang.Object
-
- net.sourceforge.pmd.lang.apex.metrics.ApexMetrics
-
@Deprecated public final class ApexMetrics extends Object
Deprecated.UseMetricsUtil
User-bound façade of the Apex metrics framework.- Since:
- 6.0.0
- Author:
- Clément Fournier
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static List<ASTMethod>
findOps(ASTUserClassOrInterface<?> node)
Deprecated.static double
get(MetricKey<ASTMethod> key, ASTMethod node)
Deprecated.Computes the standard version of the metric identified by the key on a operation AST node.static double
get(MetricKey<ASTMethod> key, ASTMethod node, MetricOptions options)
Deprecated.Computes a metric identified by its key on a operation AST node, possibly selecting metric options with theoptions
parameter.static double
get(MetricKey<ASTMethod> key, ASTUserClassOrInterface<?> node, MetricOptions options, ResultOption resultOption)
Deprecated.Compute the sum, average, or highest value of the operation metric on all operations of the class node.static double
get(MetricKey<ASTMethod> key, ASTUserClassOrInterface<?> node, ResultOption resultOption)
Deprecated.Compute the sum, average, or highest value of the standard operation metric on all operations of the class node.static double
get(MetricKey<ASTUserClassOrInterface<?>> key, ASTUserClass node)
Deprecated.Computes the standard value of the metric identified by its code on a class AST node.static double
get(MetricKey<ASTUserClassOrInterface<?>> key, ASTUserClass node, MetricOptions options)
Deprecated.Computes a metric identified by its code on a class AST node, possibly selecting metric options with theoptions
parameter.static ApexMetricsFacade
getFacade()
Deprecated.
-
-
-
Method Detail
-
getFacade
@Deprecated public static ApexMetricsFacade getFacade()
Deprecated.Returns the underlying facade.- Returns:
- The facade
-
get
public static double get(MetricKey<ASTUserClassOrInterface<?>> key, ASTUserClass node)
Deprecated.Computes the standard value of the metric identified by its code on a class AST node.- Parameters:
key
- The key identifying the metric to be computednode
- The node on which to compute the metric- Returns:
- The value of the metric, or
Double.NaN
if the value couldn't be computed
-
get
public static double get(MetricKey<ASTUserClassOrInterface<?>> key, ASTUserClass node, MetricOptions options)
Deprecated.Computes a metric identified by its code on a class AST node, possibly selecting metric options with theoptions
parameter.- Parameters:
key
- The key identifying the metric to be computednode
- The node on which to compute the metricoptions
- The options of the metric- Returns:
- The value of the metric, or
Double.NaN
if the value couldn't be computed
-
get
public static double get(MetricKey<ASTMethod> key, ASTMethod node)
Deprecated.Computes the standard version of the metric identified by the key on a operation AST node.- Parameters:
key
- The key identifying the metric to be computednode
- The node on which to compute the metric- Returns:
- The value of the metric, or
Double.NaN
if the value couldn't be computed
-
get
public static double get(MetricKey<ASTMethod> key, ASTMethod node, MetricOptions options)
Deprecated.Computes a metric identified by its key on a operation AST node, possibly selecting metric options with theoptions
parameter.- Parameters:
key
- The key identifying the metric to be computednode
- The node on which to compute the metricoptions
- The options of the metric- Returns:
- The value of the metric, or
Double.NaN
if the value couldn't be computed
-
get
public static double get(MetricKey<ASTMethod> key, ASTUserClassOrInterface<?> node, ResultOption resultOption)
Deprecated.Compute the sum, average, or highest value of the standard operation metric on all operations of the class node. The type of operation is specified by theResultOption
parameter.- Parameters:
key
- The key identifying the metric to be computednode
- The node on which to compute the metricresultOption
- The result option to use- Returns:
- The value of the metric, or
Double.NaN
if the value couldn't be computed oroption
isnull
-
get
public static double get(MetricKey<ASTMethod> key, ASTUserClassOrInterface<?> node, MetricOptions options, ResultOption resultOption)
Deprecated.Compute the sum, average, or highest value of the operation metric on all operations of the class node. The type of operation is specified by theResultOption
parameter.- Parameters:
key
- The key identifying the metric to be computednode
- The node on which to compute the metricoptions
- The options of the metricresultOption
- The result option to use- Returns:
- The value of the metric, or
Double.NaN
if the value couldn't be computed oroption
isnull
-
findOps
public static List<ASTMethod> findOps(ASTUserClassOrInterface<?> node)
Deprecated.
-
-