Package hudson.plugins.jacoco.model
Enum CoverageElement.Type
- java.lang.Object
-
- java.lang.Enum<CoverageElement.Type>
-
- 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 <jfuerth@gmail.com>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BRANCH
CLASS
COMPLEXITY
INSTRUCTION
LINE
METHOD
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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 nameNullPointerException
- 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.- Returns:
- the ratio object on the given report that tracks this type of coverage.
-
-