public enum JavaClassMetricKey extends java.lang.Enum<JavaClassMetricKey> implements MetricKey<ASTAnyTypeDeclaration>
Enum Constant and Description |
---|
ATFD
Access to Foreign Data.
|
LOC
Lines of Code.
|
NCSS
Non Commenting Source Statements.
|
NOAM
Number of Accessor Methods.
|
NOPA
Number of Public Attributes.
|
TCC
Tight Class Cohesion.
|
WMC
Weighed Method Count.
|
WOC
Weight of class.
|
Modifier and Type | Method and Description |
---|---|
JavaClassMetric |
getCalculator() |
boolean |
supports(ASTAnyTypeDeclaration node) |
static JavaClassMetricKey |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JavaClassMetricKey[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JavaClassMetricKey ATFD
AtfdMetric
public static final JavaClassMetricKey WMC
WmcMetric
public static final JavaClassMetricKey NCSS
NcssMetric
public static final JavaClassMetricKey LOC
LocMetric
public static final JavaClassMetricKey NOPA
NopaMetric
public static final JavaClassMetricKey NOAM
NopaMetric
public static final JavaClassMetricKey WOC
WocMetric
public static final JavaClassMetricKey TCC
TccMetric
public static JavaClassMetricKey[] values()
for (JavaClassMetricKey c : JavaClassMetricKey.values()) System.out.println(c);
public static JavaClassMetricKey valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic JavaClassMetric getCalculator()
getCalculator
in interface MetricKey<ASTAnyTypeDeclaration>
public boolean supports(ASTAnyTypeDeclaration node)
supports
in interface MetricKey<ASTAnyTypeDeclaration>
Copyright © 2002–2017 PMD. All rights reserved.