public enum JavaMetric extends Enum<JavaMetric> implements org.sonar.squid.measures.MetricDef
| Enum Constant and Description |
|---|
CLASSES |
COMMENT_BLANK_LINES |
COMMENT_LINES_WITHOUT_HEADER |
COMPLEXITY |
FILES |
LINES |
LINES_OF_CODE |
METHODS |
PACKAGES |
STATEMENTS |
| Modifier and Type | Method and Description |
|---|---|
boolean |
aggregateIfThereIsAlreadyAValue() |
org.sonar.squid.measures.CalculatedMetricFormula |
getCalculatedMetricFormula() |
String |
getName() |
boolean |
isCalculatedMetric() |
boolean |
isThereAggregationFormula() |
static JavaMetric |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JavaMetric[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JavaMetric FILES
public static final JavaMetric LINES
public static final JavaMetric LINES_OF_CODE
public static final JavaMetric COMMENT_LINES_WITHOUT_HEADER
public static final JavaMetric COMMENT_BLANK_LINES
public static final JavaMetric STATEMENTS
public static final JavaMetric COMPLEXITY
public static final JavaMetric METHODS
public static final JavaMetric CLASSES
public static final JavaMetric PACKAGES
public static JavaMetric[] values()
for (JavaMetric c : JavaMetric.values()) System.out.println(c);
public static JavaMetric 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 String getName()
getName in interface org.sonar.squid.measures.MetricDefpublic boolean isCalculatedMetric()
isCalculatedMetric in interface org.sonar.squid.measures.MetricDefpublic boolean aggregateIfThereIsAlreadyAValue()
aggregateIfThereIsAlreadyAValue in interface org.sonar.squid.measures.MetricDefpublic boolean isThereAggregationFormula()
isThereAggregationFormula in interface org.sonar.squid.measures.MetricDefpublic org.sonar.squid.measures.CalculatedMetricFormula getCalculatedMetricFormula()
getCalculatedMetricFormula in interface org.sonar.squid.measures.MetricDefCopyright © 2012-2013 SonarSource. All Rights Reserved.