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).
Please explicitly link your code to that method and recompile your code. Will be remove with 7.0.0 |
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.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfnamepublic static final JavaOperationMetricKey ATFD
AtfdMetricpublic static final JavaOperationMetricKey CYCLO
CycloMetricpublic static final JavaOperationMetricKey NCSS
NcssMetricpublic static final JavaOperationMetricKey LOC
LocMetricpublic static final JavaOperationMetricKey NPATH
NpathMetricpublic 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.