com.sonar.c.api.metric
Enum CMetric
java.lang.Object
java.lang.Enum<CMetric>
com.sonar.c.api.metric.CMetric
- All Implemented Interfaces:
- Serializable, Comparable<CMetric>
public enum CMetric
- extends Enum<CMetric>
PUBLIC_API
public static final CMetric PUBLIC_API
PUBLIC_DOC_API
public static final CMetric PUBLIC_DOC_API
FUNCTIONS
public static final CMetric FUNCTIONS
LINES_OF_CODE
public static final CMetric LINES_OF_CODE
STATEMENTS
public static final CMetric STATEMENTS
LINES
public static final CMetric LINES
FILES
public static final CMetric FILES
COMMENT_BLANK_LINES
public static final CMetric COMMENT_BLANK_LINES
COMMENTED_OUT_CODE_LINES
public static final CMetric COMMENTED_OUT_CODE_LINES
COMMENT_LINES
public static final CMetric COMMENT_LINES
COMPLEXITY
public static final CMetric COMPLEXITY
values
public static CMetric[] 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 (CMetric c : CMetric.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static CMetric 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
getInitValue
public double getInitValue()
getName
public String getName()
isCalculatedMetric
public boolean isCalculatedMetric()
aggregateIfThereIsAlreadyAValue
public boolean aggregateIfThereIsAlreadyAValue()
isThereAggregationFormula
public boolean isThereAggregationFormula()
getCalculatedMetricFormula
public CalculatedMetricFormula getCalculatedMetricFormula()
getAggregationFormula
public AggregationFormula getAggregationFormula()
Copyright © 2011 SonarSource. All Rights Reserved.