org.sonar.squid.measures
Enum Metric

java.lang.Object
  extended by java.lang.Enum<Metric>
      extended by org.sonar.squid.measures.Metric
All Implemented Interfaces:
Serializable, Comparable<Metric>

public enum Metric
extends Enum<Metric>


Enum Constant Summary
ABSTRACT_CLASSES
           
ABSTRACTNESS
           
ACCESSORS
           
ANONYMOUS_INNER_CLASSES
           
BLANK_LINES
           
BRANCHES
           
CA
           
CE
           
CLASSES
           
COMMENT_BLANK_LINES
           
COMMENT_LINES
           
COMMENT_LINES_DENSITY
           
COMMENT_LINES_WITHOUT_HEADER
           
COMMENTED_OUT_CODE_LINES
           
COMPLEXITY
           
CONSTRUCTORS
           
DISTANCE
           
DIT
           
FILES
           
HEADER_COMMENT_LINES
           
INSTABILITY
           
INTERFACES
           
LCOM4
           
LCOM4_BLOCKS
           
LINES
           
LINES_OF_CODE
           
METHODS
           
NOC
           
PACKAGES
           
PUBLIC_API
           
PUBLIC_DOC_API
           
PUBLIC_DOCUMENTED_API_DENSITY
           
RFC
           
STATEMENTS
           
 
Method Summary
 boolean aggregateIfThereIsAlreadyAValue()
           
 AggregationFormula getAggregationFormula()
           
 CalculatedMetricFormula getCalculatedMetricFormula()
           
 double getInitValue()
           
 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.
 
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

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

DIT

public static final Metric DIT

RFC

public static final Metric RFC

NOC

public static final Metric NOC

LCOM4

public static final Metric LCOM4

LCOM4_BLOCKS

public static final Metric LCOM4_BLOCKS
Method Detail

values

public static Metric[] 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 (Metric c : Metric.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are 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
NullPointerException - if the argument is null

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-2010 SonarSource SA. All Rights Reserved.