Package org.sonar.python.api
Enum PythonMetric
- java.lang.Object
-
- java.lang.Enum<PythonMetric>
-
- org.sonar.python.api.PythonMetric
-
- All Implemented Interfaces:
Serializable,Comparable<PythonMetric>
public enum PythonMetric extends Enum<PythonMetric>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLASSESCOMMENT_LINESCOMPLEXITYFILESFUNCTIONSLINES_OF_CODESTATEMENTS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PythonMetricvalueOf(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.
-
-
-
Enum Constant Detail
-
FILES
public static final PythonMetric FILES
-
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
-
-
Method Detail
-
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 nameNullPointerException- if the argument is null
-
-