net.sourceforge.cobertura.coveragedata
public class ProjectData extends CoverageDataContainer implements HasBeenInstrumented
Field Summary | |
---|---|
Map | classes This collection is used for quicker access to the list of classes. |
static ProjectData | globalProjectData |
static SaveTimer | saveTimer |
static long | serialVersionUID |
Method Summary | |
---|---|
void | addClassData(ClassData classData) |
ClassData | getClassData(String name) |
Collection | getClasses() |
static ProjectData | getGlobalProjectData()
Get a reference to a ProjectData object in order to increase the
coverage count for a specific line.
|
int | getNumberOfClasses() |
int | getNumberOfSourceFiles() |
ClassData | getOrCreateClassData(String name)
This is called by instrumented bytecode. |
SortedSet | getPackages() |
Collection | getSourceFiles() |
SortedSet | getSubPackages(String packageName)
Get all subpackages of the given package. |
static void | initialize() |
static ProjectData | loadCoverageDataFromDatafile(File dataFile) |
void | merge(CoverageData coverageData) |
static void | saveGlobalProjectData() |
Parameters: packageName The package name to find subpackages for. For example, "com.example"
Returns: A collection containing PackageData objects. Each one has a name beginning with the given packageName. For example: "com.example.io", "com.example.io.internal"