|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jacoco.core.analysis.CoverageBuilder
public class CoverageBuilder
Builder for hierarchical ICoverageNode
structures based on execution
and structure information. The builder is constructed for a given
ExecutionDataStore
and then feed with class structure information
through its IStructureVisitor
interface. Afterwards the collected
data can be obtained with getClasses()
, getSourceFiles()
or
getBundle(String)
.
Constructor Summary | |
---|---|
CoverageBuilder(ExecutionDataStore executionData)
Create a new builder based on the given execution data. |
|
CoverageBuilder(ExecutionDataStore executionData,
StringPool stringPool)
Create a new builder based on the given execution data. |
Method Summary | |
---|---|
BundleCoverage |
getBundle(String name)
Creates a bundle from all nodes currently contained in this bundle. |
Collection<ClassCoverage> |
getClasses()
Returns all class nodes currently contained in this builder. |
Collection<SourceFileCoverage> |
getSourceFiles()
Returns all source file nodes currently contained in this builder. |
IClassStructureVisitor |
visitClassStructure(long id)
Provides structural information about a class as collected during instrumentation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CoverageBuilder(ExecutionDataStore executionData)
executionData
- execution datapublic CoverageBuilder(ExecutionDataStore executionData, StringPool stringPool)
executionData
- execution datastringPool
- pool to optimize the number of String
instancesMethod Detail |
---|
public Collection<ClassCoverage> getClasses()
public Collection<SourceFileCoverage> getSourceFiles()
public BundleCoverage getBundle(String name)
name
- Name of the bundle
public IClassStructureVisitor visitClassStructure(long id)
IStructureVisitor
visitClassStructure
in interface IStructureVisitor
id
- unique id for the class
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |