|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jacoco.core.data.ExecutionData
public final class ExecutionData
Execution data for a single Java class. While instances are immutable care
has to be taken about the probe data array of type boolean[]
which can be modified.
| Constructor Summary | |
|---|---|
ExecutionData(long id,
String name,
boolean[] data)
Creates a new ExecutionData object with the given probe data. |
|
ExecutionData(long id,
String name,
int dataLength)
Creates a new ExecutionData object with the given probe data
length. |
|
| Method Summary | |
|---|---|
void |
assertCompatibility(long id,
String name,
int dataLength)
Asserts that this execution data object is compatible with the given parameters. |
boolean[] |
getData()
Returns the execution data probes. |
long |
getId()
Return the unique identifier for this class. |
String |
getName()
The VM name of the class. |
void |
merge(ExecutionData other)
Merges the given execution data into the probe data of this object. |
void |
merge(ExecutionData other,
boolean flag)
Merges the given execution data into the probe data of this object. |
void |
reset()
Sets all probe data entries to false. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ExecutionData(long id,
String name,
boolean[] data)
ExecutionData object with the given probe data.
id - class identifiername - VM namedata - probe data
public ExecutionData(long id,
String name,
int dataLength)
ExecutionData object with the given probe data
length. All probes are set to false.
id - class identifiername - VM namedataLength - probe data length| Method Detail |
|---|
public long getId()
public String getName()
public boolean[] getData()
true indicates
that the corresponding probe was executed.
public void reset()
false.
public void merge(ExecutionData other)
true) if
this probe or the corresponding other probe was executed. So the result
is
A or BThe probe array of the other object is not modified.
other - execution data to merge
public void merge(ExecutionData other,
boolean flag)
flag if the
corresponding other probe was executed. For flag==true this
corresponds to
A or BFor
flag==true this can be considered as a subtraction
A and not BThe probe array of the other object is not modified.
other - execution data to mergeflag - merge mode
public void assertCompatibility(long id,
String name,
int dataLength)
throws IllegalStateException
id - other class id, must be the samename - other name, must be equal to this namedataLength - probe data length, must be the same as for this data
IllegalStateException - if the given parameters do not match this instancepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||