|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jacoco.core.data.ExecutionDataStore
public class ExecutionDataStore
In-memory data store for execution data. The data can be added through its
IExecutionDataVisitor
interface. If execution data is provided
multiple times for the same class the data is merged, i.e. a block is marked
as executed if it is reported as executed at least once. This allows to merge
coverage date from multiple runs. A instance of this class is not thread
safe.
Constructor Summary | |
---|---|
ExecutionDataStore()
|
Method Summary | |
---|---|
void |
accept(IExecutionDataVisitor visitor)
Writes the content of the store to the given visitor interface. |
boolean[] |
getData(long classid)
Returns the coverage data for the class with the given identifier if available. |
boolean[] |
getData(Long classid)
Returns the coverage data for the class with the given identifier if available. |
String |
getName(long classid)
Returns the vm name of the class with the given id. |
String |
getName(Long classid)
Returns the vm name of the class with the given id. |
void |
put(long classid,
String name,
boolean[] data)
Adds the given block data structure into the store. |
void |
put(Long classid,
String name,
boolean[] data)
Adds the given block data structure into the store. |
void |
reset()
Resets all execution data structures, i.e. marks them as not executed. |
void |
visitClassExecution(long classid,
String name,
boolean[] data)
Provides execution data for the class with the given id. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExecutionDataStore()
Method Detail |
---|
public void put(Long classid, String name, boolean[] data)
IllegalStateException
is thrown, if both
executions data structure do have different sizes or the name is
different.
classid
- unique class identifiername
- VM name of the classdata
- execution datapublic void put(long classid, String name, boolean[] data)
IllegalStateException
is thrown, if both
executions data structure do have different sizes or the name is
different.
classid
- unique class identifiername
- VM name of the classdata
- execution datapublic boolean[] getData(Long classid)
classid
- class identifier
null
public boolean[] getData(long classid)
classid
- class identifier
null
public String getName(Long classid)
classid
- class identifier
null
public String getName(long classid)
classid
- class identifier
null
public void reset()
public void accept(IExecutionDataVisitor visitor)
visitor
- interface to write content topublic void visitClassExecution(long classid, String name, boolean[] data)
IExecutionDataVisitor
true
indicates that a probe has been executed.
visitClassExecution
in interface IExecutionDataVisitor
classid
- id of the classname
- VM name of the classdata
- coverage data for the class
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |