Enum ApexClassMetricKey
- java.lang.Object
-
- java.lang.Enum<ApexClassMetricKey>
-
- net.sourceforge.pmd.lang.apex.metrics.api.ApexClassMetricKey
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ApexClassMetricKey>
,net.sourceforge.pmd.lang.metrics.MetricKey<ASTUserClassOrInterface<?>>
public enum ApexClassMetricKey extends java.lang.Enum<ApexClassMetricKey> implements net.sourceforge.pmd.lang.metrics.MetricKey<ASTUserClassOrInterface<?>>
- Author:
- Clément Fournier
-
-
Enum Constant Summary
Enum Constants Enum Constant Description WMC
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ApexClassMetric
getCalculator()
boolean
supports(ASTUserClassOrInterface<?> node)
static ApexClassMetricKey
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ApexClassMetricKey[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WMC
public static final ApexClassMetricKey WMC
-
-
Method Detail
-
values
public static ApexClassMetricKey[] 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 (ApexClassMetricKey c : ApexClassMetricKey.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ApexClassMetricKey valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getCalculator
public ApexClassMetric getCalculator()
- Specified by:
getCalculator
in interfacenet.sourceforge.pmd.lang.metrics.MetricKey<ASTUserClassOrInterface<?>>
-
supports
public boolean supports(ASTUserClassOrInterface<?> node)
- Specified by:
supports
in interfacenet.sourceforge.pmd.lang.metrics.MetricKey<ASTUserClassOrInterface<?>>
-
-