org.sonar.python.api
Enum PythonMetric
java.lang.Object
java.lang.Enum<PythonMetric>
org.sonar.python.api.PythonMetric
- All Implemented Interfaces:
- Serializable, Comparable<PythonMetric>, org.sonar.squidbridge.measures.MetricDef
public enum PythonMetric
- extends Enum<PythonMetric>
- implements org.sonar.squidbridge.measures.MetricDef
FILES
public static final PythonMetric FILES
LINES
public static final PythonMetric LINES
LINES_OF_CODE
public static final PythonMetric LINES_OF_CODE
STATEMENTS
public static final PythonMetric STATEMENTS
FUNCTIONS
public static final PythonMetric FUNCTIONS
CLASSES
public static final PythonMetric CLASSES
COMPLEXITY
public static final PythonMetric COMPLEXITY
COMMENT_LINES
public static final PythonMetric COMMENT_LINES
values
public static PythonMetric[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (PythonMetric c : PythonMetric.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static PythonMetric valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
getName
public String getName()
- Specified by:
getName in interface org.sonar.squidbridge.measures.MetricDef
isCalculatedMetric
public boolean isCalculatedMetric()
- Specified by:
isCalculatedMetric in interface org.sonar.squidbridge.measures.MetricDef
aggregateIfThereIsAlreadyAValue
public boolean aggregateIfThereIsAlreadyAValue()
- Specified by:
aggregateIfThereIsAlreadyAValue in interface org.sonar.squidbridge.measures.MetricDef
isThereAggregationFormula
public boolean isThereAggregationFormula()
- Specified by:
isThereAggregationFormula in interface org.sonar.squidbridge.measures.MetricDef
getCalculatedMetricFormula
public org.sonar.squidbridge.measures.CalculatedMetricFormula getCalculatedMetricFormula()
- Specified by:
getCalculatedMetricFormula in interface org.sonar.squidbridge.measures.MetricDef
Copyright © 2011-2014 SonarSource and Waleri Enns. All Rights Reserved.