org.sonar.squid.measures
Enum Metric
java.lang.Object
java.lang.Enum<Metric>
org.sonar.squid.measures.Metric
- All Implemented Interfaces:
- Serializable, Comparable<Metric>
public enum Metric
- extends Enum<Metric>
PACKAGES
public static final Metric PACKAGES
CLASSES
public static final Metric CLASSES
ANONYMOUS_INNER_CLASSES
public static final Metric ANONYMOUS_INNER_CLASSES
FILES
public static final Metric FILES
METHODS
public static final Metric METHODS
CONSTRUCTORS
public static final Metric CONSTRUCTORS
STATEMENTS
public static final Metric STATEMENTS
LINES
public static final Metric LINES
BLANK_LINES
public static final Metric BLANK_LINES
COMMENT_LINES
public static final Metric COMMENT_LINES
HEADER_COMMENT_LINES
public static final Metric HEADER_COMMENT_LINES
COMMENTED_OUT_CODE_LINES
public static final Metric COMMENTED_OUT_CODE_LINES
BRANCHES
public static final Metric BRANCHES
PUBLIC_API
public static final Metric PUBLIC_API
PUBLIC_DOC_API
public static final Metric PUBLIC_DOC_API
ACCESSORS
public static final Metric ACCESSORS
COMMENT_BLANK_LINES
public static final Metric COMMENT_BLANK_LINES
LINES_OF_CODE
public static final Metric LINES_OF_CODE
COMMENT_LINES_WITHOUT_HEADER
public static final Metric COMMENT_LINES_WITHOUT_HEADER
PUBLIC_DOCUMENTED_API_DENSITY
public static final Metric PUBLIC_DOCUMENTED_API_DENSITY
COMMENT_LINES_DENSITY
public static final Metric COMMENT_LINES_DENSITY
COMPLEXITY
public static final Metric COMPLEXITY
INTERFACES
public static final Metric INTERFACES
ABSTRACT_CLASSES
public static final Metric ABSTRACT_CLASSES
ABSTRACTNESS
public static final Metric ABSTRACTNESS
CA
public static final Metric CA
CE
public static final Metric CE
INSTABILITY
public static final Metric INSTABILITY
DISTANCE
public static final Metric DISTANCE
values
public static final Metric[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(Metric c : Metric.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static Metric 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
getInitValue
public double getInitValue()
isCalculatedMetric
public boolean isCalculatedMetric()
aggregateIfThereIsAlreadyAValue
public boolean aggregateIfThereIsAlreadyAValue()
isThereAggregationFormula
public boolean isThereAggregationFormula()
getCalculatedMetricFormula
public CalculatedMetricFormula getCalculatedMetricFormula()
getAggregationFormula
public AggregationFormula getAggregationFormula()
Copyright © 2009 SonarSource SA. All Rights Reserved.