org.jacoco.core.analysis
Class ClassCoverage
java.lang.Object
org.jacoco.core.analysis.CoverageNodeImpl
org.jacoco.core.analysis.ClassCoverage
- All Implemented Interfaces:
- ICoverageNode
public class ClassCoverage
- extends CoverageNodeImpl
Coverage data of a single class.
- Version:
- $Revision: $
- Author:
- Marc R. Hoffmann
Methods inherited from class org.jacoco.core.analysis.CoverageNodeImpl |
getBlockCounter, getClassCounter, getCounter, getElementType, getInstructionCounter, getLineCounter, getLines, getMethodCounter, getName, getPlainCopy, increment, increment |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassCoverage
public ClassCoverage(String name,
String sourceFileName,
Collection<MethodCoverage> methods)
- Creates a class coverage data object with the given parameters.
- Parameters:
name
- vm name of the classsourceFileName
- optional name of the corresponding source filemethods
- contained methods
getPackageName
public String getPackageName()
- Returns the VM name of the package this class belongs to.
- Returns:
- VM name of the package
getSimpleName
public String getSimpleName()
- Returns the VM name of the class without the package prefix.
- Returns:
- VM name of the class without the package
getSourceFileName
public String getSourceFileName()
- Returns the optional name of the corresponding source file.
- Returns:
- name of the corresponding source file
getMethods
public Collection<MethodCoverage> getMethods()
- Returns the methods included in this class.
- Returns:
- methods of this class