net.sourceforge.cobertura.coveragedata
Class ProjectData
CoverageDataContainer
net.sourceforge.cobertura.coveragedata.ProjectData
- HasBeenInstrumented
extends CoverageDataContainer
implements HasBeenInstrumented
classes
private Map classes
This collection is used for quicker access to the list of classes.
getGlobalProjectData
public static ProjectData getGlobalProjectData()
Get a reference to a ProjectData object in order to increase the
coverage count for a specific line.
This method is only called by code that has been instrumented. It
is not called by any of the Cobertura code or ant tasks.
getOrCreateClassData
public ClassData getOrCreateClassData(String name)
This is called by instrumented bytecode.
getSubPackages
public SortedSet getSubPackages(String packageName)
Get all subpackages of the given package. Includes also specified package if
it exists.
packageName
- The package name to find subpackages for.
For example, "com.example"
- A collection containing PackageData objects. Each one
has a name beginning with the given packageName. For
example: "com.example.io", "com.example.io.internal"
merge
public void merge(CoverageData coverageData)