java.io.Serializable
, java.lang.Comparable<JavaOperationMetricKey>
, net.sourceforge.pmd.lang.metrics.MetricKey<MethodLikeNode>
public enum JavaOperationMetricKey extends java.lang.Enum<JavaOperationMetricKey> implements net.sourceforge.pmd.lang.metrics.MetricKey<MethodLikeNode>
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) |
Deprecated.
Provided here for backwards binary compatibility with
supports(MethodLikeNode) . |
boolean |
supports(MethodLikeNode 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.
|
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<MethodLikeNode>
public boolean supports(MethodLikeNode node)
supports
in interface net.sourceforge.pmd.lang.metrics.MetricKey<MethodLikeNode>
@Deprecated public boolean supports(ASTMethodOrConstructorDeclaration node)
supports(MethodLikeNode)
.
Please explicitly link your code to that method and recompile your code. Will be remove with 7.0.0supports(MethodLikeNode)
Copyright © 2002–2018 PMD. All rights reserved.