Enum ApexOperationMetricKey
- java.lang.Object
-
- java.lang.Enum<ApexOperationMetricKey>
-
- net.sourceforge.pmd.lang.apex.metrics.api.ApexOperationMetricKey
-
- All Implemented Interfaces:
Serializable
,Comparable<ApexOperationMetricKey>
,net.sourceforge.pmd.lang.metrics.MetricKey<ASTMethod>
,net.sourceforge.pmd.util.DataMap.DataKey<net.sourceforge.pmd.lang.metrics.MetricKey<ASTMethod>,Double>
public enum ApexOperationMetricKey extends Enum<ApexOperationMetricKey> implements net.sourceforge.pmd.lang.metrics.MetricKey<ASTMethod>
- Author:
- Clément Fournier
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ApexOperationMetric
getCalculator()
boolean
supports(ASTMethod node)
static ApexOperationMetricKey
valueOf(String name)
Returns the enum constant of this type with the specified name.static ApexOperationMetricKey[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CYCLO
public static final ApexOperationMetricKey CYCLO
-
COGNITIVE
public static final ApexOperationMetricKey COGNITIVE
-
-
Method Detail
-
values
public static ApexOperationMetricKey[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ApexOperationMetricKey c : ApexOperationMetricKey.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ApexOperationMetricKey valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getCalculator
public ApexOperationMetric getCalculator()
- Specified by:
getCalculator
in interfacenet.sourceforge.pmd.lang.metrics.MetricKey<ASTMethod>
-
-