Enum CobolMetrics
- java.lang.Object
-
- java.lang.Enum<CobolMetrics>
-
- com.sonarsource.cobol.api.metrics.CobolMetrics
-
- All Implemented Interfaces:
Serializable
,Comparable<CobolMetrics>
,org.sonar.squid.measures.MetricDef
@Deprecated public enum CobolMetrics extends Enum<CobolMetrics> implements org.sonar.squid.measures.MetricDef
Deprecated.with no replacement
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMMENT_BLANK_LINES
Deprecated.COMMENT_LINES
Deprecated.COMPLEXITY
Deprecated.GENERATED_LINES
Deprecated.GENERATED_LINES_OF_CODE
Deprecated.LINES_OF_CODE
Deprecated.PARAGRAPHS
Deprecated.PUBLIC_API
Deprecated.PUBLIC_DOC_API
Deprecated.STATEMENTS
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
aggregateIfThereIsAlreadyAValue()
Deprecated.org.sonar.squid.measures.AggregationFormula
getAggregationFormula()
Deprecated.org.sonar.squid.measures.CalculatedMetricFormula
getCalculatedMetricFormula()
Deprecated.double
getInitValue()
Deprecated.String
getName()
Deprecated.boolean
isCalculatedMetric()
Deprecated.boolean
isThereAggregationFormula()
Deprecated.static CobolMetrics
valueOf(String name)
Deprecated.Returns the enum constant of this type with the specified name.static CobolMetrics[]
values()
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PARAGRAPHS
public static final CobolMetrics PARAGRAPHS
Deprecated.
-
PUBLIC_API
public static final CobolMetrics PUBLIC_API
Deprecated.
-
PUBLIC_DOC_API
public static final CobolMetrics PUBLIC_DOC_API
Deprecated.
-
LINES_OF_CODE
public static final CobolMetrics LINES_OF_CODE
Deprecated.
-
STATEMENTS
public static final CobolMetrics STATEMENTS
Deprecated.
-
COMMENT_BLANK_LINES
public static final CobolMetrics COMMENT_BLANK_LINES
Deprecated.
-
COMMENT_LINES
public static final CobolMetrics COMMENT_LINES
Deprecated.
-
COMPLEXITY
public static final CobolMetrics COMPLEXITY
Deprecated.
-
GENERATED_LINES_OF_CODE
public static final CobolMetrics GENERATED_LINES_OF_CODE
Deprecated.
-
GENERATED_LINES
public static final CobolMetrics GENERATED_LINES
Deprecated.
-
-
Method Detail
-
values
public static CobolMetrics[] values()
Deprecated.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 (CobolMetrics c : CobolMetrics.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CobolMetrics valueOf(String name)
Deprecated.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
-
getInitValue
public double getInitValue()
Deprecated.
-
getName
public String getName()
Deprecated.- Specified by:
getName
in interfaceorg.sonar.squid.measures.MetricDef
-
isCalculatedMetric
public boolean isCalculatedMetric()
Deprecated.- Specified by:
isCalculatedMetric
in interfaceorg.sonar.squid.measures.MetricDef
-
aggregateIfThereIsAlreadyAValue
public boolean aggregateIfThereIsAlreadyAValue()
Deprecated.- Specified by:
aggregateIfThereIsAlreadyAValue
in interfaceorg.sonar.squid.measures.MetricDef
-
isThereAggregationFormula
public boolean isThereAggregationFormula()
Deprecated.- Specified by:
isThereAggregationFormula
in interfaceorg.sonar.squid.measures.MetricDef
-
getCalculatedMetricFormula
public org.sonar.squid.measures.CalculatedMetricFormula getCalculatedMetricFormula()
Deprecated.- Specified by:
getCalculatedMetricFormula
in interfaceorg.sonar.squid.measures.MetricDef
-
getAggregationFormula
public org.sonar.squid.measures.AggregationFormula getAggregationFormula()
Deprecated.
-
-