net.sourceforge.pmd.lang.metrics.MetricKey<ASTMethodOrConstructorDeclaration>
public enum JavaOperationMetricKey extends java.lang.Enum<JavaOperationMetricKey> implements net.sourceforge.pmd.lang.metrics.MetricKey<ASTMethodOrConstructorDeclaration>
Enum Constant | Description |
---|---|
ATFD |
Access to Foreign Data.
|
CYCLO |
Cyclomatic complexity.
|
LOC |
Lines of Code.
|
NCSS |
Non Commenting Source Statements.
|
NPATH |
N-path complexity.
|
Modifier and Type | Method | Description |
---|---|---|
JavaOperationMetric |
getCalculator() |
|
boolean |
supports(ASTMethodOrConstructorDeclaration node) |
|
static JavaOperationMetricKey |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static JavaOperationMetricKey[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
name
public static final JavaOperationMetricKey ATFD
AtfdMetric
public static final JavaOperationMetricKey CYCLO
CycloMetric
public static final JavaOperationMetricKey NCSS
NcssMetric
public static final JavaOperationMetricKey LOC
LocMetric
public static final JavaOperationMetricKey NPATH
NpathMetric
public static JavaOperationMetricKey[] values()
for (JavaOperationMetricKey c : JavaOperationMetricKey.values()) System.out.println(c);
public static JavaOperationMetricKey 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 JavaOperationMetric getCalculator()
getCalculator
in interface net.sourceforge.pmd.lang.metrics.MetricKey<ASTMethodOrConstructorDeclaration>
public boolean supports(ASTMethodOrConstructorDeclaration node)
supports
in interface net.sourceforge.pmd.lang.metrics.MetricKey<ASTMethodOrConstructorDeclaration>
Copyright © 2002–2018 PMD. All rights reserved.