com.sonar.c.api.metric
Enum CMetric

java.lang.Object
  extended by java.lang.Enum<CMetric>
      extended by com.sonar.c.api.metric.CMetric
All Implemented Interfaces:
Serializable, Comparable<CMetric>

public enum CMetric
extends Enum<CMetric>


Enum Constant Summary
COMMENT_BLANK_LINES
           
COMMENT_LINES
           
COMMENTED_OUT_CODE_LINES
           
COMPLEXITY
           
FILES
           
FUNCTIONS
           
LINES
           
LINES_OF_CODE
           
PUBLIC_API
           
PUBLIC_DOC_API
           
STATEMENTS
           
 
Method Summary
 boolean aggregateIfThereIsAlreadyAValue()
           
 AggregationFormula getAggregationFormula()
           
 CalculatedMetricFormula getCalculatedMetricFormula()
           
 double getInitValue()
           
 String getName()
           
 boolean isCalculatedMetric()
           
 boolean isThereAggregationFormula()
           
static CMetric valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CMetric[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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.