hudson.plugins.jacoco.model
Enum CoverageElement.Type

java.lang.Object
  extended by java.lang.Enum<CoverageElement.Type>
      extended by hudson.plugins.jacoco.model.CoverageElement.Type
All Implemented Interfaces:
Serializable, Comparable<CoverageElement.Type>
Enclosing class:
CoverageElement

public static enum CoverageElement.Type
extends Enum<CoverageElement.Type>

Enumeration of coverage types that appear in a JaCoCo report.

Author:
Jonathan Fuerth

Enum Constant Summary
BRANCH
           
CLASS
           
COMPLEXITY
           
INSTRUCTION
           
LINE
           
METHOD
           
 
Method Summary
abstract  Coverage getAssociatedRatio(AbstractReport<?,?> from)
          Returns the ratio object on the given report that tracks this type of coverage.
static CoverageElement.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CoverageElement.Type[] 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

INSTRUCTION

public static final CoverageElement.Type INSTRUCTION

BRANCH

public static final CoverageElement.Type BRANCH

LINE

public static final CoverageElement.Type LINE

COMPLEXITY

public static final CoverageElement.Type COMPLEXITY

METHOD

public static final CoverageElement.Type METHOD

CLASS

public static final CoverageElement.Type CLASS
Method Detail

values

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

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static CoverageElement.Type 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

getAssociatedRatio

public abstract Coverage getAssociatedRatio(AbstractReport<?,?> from)
Returns the ratio object on the given report that tracks this type of coverage.

Parameters:
from - The report to return the appropriate Coverage object from. Not null.


Copyright © 2004-2014 Hudson. All Rights Reserved.