public enum PythonMetric extends Enum<PythonMetric> implements org.sonar.squidbridge.measures.MetricDef
| Enum Constant and Description |
|---|
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 PythonMetric |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PythonMetric[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PythonMetric FILES
public static final PythonMetric LINES
public static final PythonMetric LINES_OF_CODE
public static final PythonMetric STATEMENTS
public static final PythonMetric FUNCTIONS
public static final PythonMetric CLASSES
public static final PythonMetric COMPLEXITY
public static final PythonMetric COMMENT_LINES
public static PythonMetric[] values()
for (PythonMetric c : PythonMetric.values()) System.out.println(c);
public static PythonMetric 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 Waleri Enns. All rights reserved.