public enum EcmaScriptMetric extends Enum<EcmaScriptMetric> implements org.sonar.squidbridge.measures.MetricDef
| Enum Constant and Description |
|---|
ACCESSORS |
CLASSES |
COMMENT_LINES |
COMPLEXITY |
FILES |
FUNCTIONS |
LINES |
LINES_OF_CODE |
STATEMENTS |
| Modifier and Type | Method and Description |
|---|---|
boolean |
aggregateIfThereIsAlreadyAValue() |
org.sonar.squidbridge.measures.CalculatedMetricFormula |
getCalculatedMetricFormula() |
String |
getName() |
boolean |
isCalculatedMetric() |
boolean |
isThereAggregationFormula() |
static EcmaScriptMetric |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EcmaScriptMetric[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EcmaScriptMetric FILES
public static final EcmaScriptMetric LINES
public static final EcmaScriptMetric LINES_OF_CODE
public static final EcmaScriptMetric COMMENT_LINES
public static final EcmaScriptMetric STATEMENTS
public static final EcmaScriptMetric COMPLEXITY
public static final EcmaScriptMetric FUNCTIONS
public static final EcmaScriptMetric ACCESSORS
public static final EcmaScriptMetric CLASSES
public static EcmaScriptMetric[] values()
for (EcmaScriptMetric c : EcmaScriptMetric.values()) System.out.println(c);
public static EcmaScriptMetric 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.squidbridge.measures.MetricDefpublic boolean isCalculatedMetric()
isCalculatedMetric in interface org.sonar.squidbridge.measures.MetricDefpublic boolean aggregateIfThereIsAlreadyAValue()
aggregateIfThereIsAlreadyAValue in interface org.sonar.squidbridge.measures.MetricDefpublic boolean isThereAggregationFormula()
isThereAggregationFormula in interface org.sonar.squidbridge.measures.MetricDefpublic org.sonar.squidbridge.measures.CalculatedMetricFormula getCalculatedMetricFormula()
getCalculatedMetricFormula in interface org.sonar.squidbridge.measures.MetricDefCopyright © 2011–2015 SonarSource and Eriks Nukis. All rights reserved.