public enum ClassMetricKey extends Enum<ClassMetricKey> implements MetricKey<ClassMetric>
| Enum Constant and Description |
|---|
ATFD
Access to Foreign Data.
|
CYCLO
Cyclomatic complexity.
|
LOC
Lines of Code.
|
NCSS
Non Commenting Source Statements.
|
WMC
Weighed Method Count.
|
| Modifier and Type | Method and Description |
|---|---|
ClassMetric |
getCalculator()
Returns the object used to calculate the metric.
|
static ClassMetricKey |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClassMetricKey[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClassMetricKey ATFD
public static final ClassMetricKey WMC
public static final ClassMetricKey CYCLO
public static final ClassMetricKey NCSS
public static final ClassMetricKey LOC
public static ClassMetricKey[] values()
for (ClassMetricKey c : ClassMetricKey.values()) System.out.println(c);
public static ClassMetricKey valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic ClassMetric getCalculator()
MetricKeygetCalculator in interface MetricKey<ClassMetric>Copyright © 2002–2017 PMD. All rights reserved.