public enum Metric extends Enum<Metric> implements MetricDef
Modifier and Type | Method and Description |
---|---|
boolean |
aggregateIfThereIsAlreadyAValue() |
CalculatedMetricFormula |
getCalculatedMetricFormula() |
String |
getName() |
boolean |
isCalculatedMetric() |
boolean |
isThereAggregationFormula() |
static Metric |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Metric[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Metric ANONYMOUS_INNER_CLASSES
public static final Metric CONSTRUCTORS
public static final Metric STATEMENTS
public static final Metric BLANK_LINES
public static final Metric COMMENT_LINES
public static final Metric HEADER_COMMENT_LINES
public static final Metric COMMENTED_OUT_CODE_LINES
public static final Metric PUBLIC_API
public static final Metric PUBLIC_DOC_API
public static final Metric COMMENT_BLANK_LINES
public static final Metric LINES_OF_CODE
public static final Metric COMMENT_LINES_WITHOUT_HEADER
public static final Metric PUBLIC_DOCUMENTED_API_DENSITY
public static final Metric COMMENT_LINES_DENSITY
public static final Metric COMPLEXITY
public static final Metric INTERFACES
public static final Metric ABSTRACT_CLASSES
public static final Metric ABSTRACTNESS
public static final Metric INSTABILITY
public static final Metric LCOM4_BLOCKS
public static Metric[] values()
for (Metric c : Metric.values()) System.out.println(c);
public static Metric 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 boolean isCalculatedMetric()
isCalculatedMetric
in interface MetricDef
public boolean aggregateIfThereIsAlreadyAValue()
aggregateIfThereIsAlreadyAValue
in interface MetricDef
public boolean isThereAggregationFormula()
isThereAggregationFormula
in interface MetricDef
public CalculatedMetricFormula getCalculatedMetricFormula()
getCalculatedMetricFormula
in interface MetricDef
Copyright © 2009-2012 SonarSource. All Rights Reserved.