|
||||||||||
| 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[] probes)
Creates a new ExecutionData object with the given probe data. |
|
ExecutionData(long id,
String name,
int probeCount)
Creates a new ExecutionData object with the given probe data
length. |
|
| Method Summary | |
|---|---|
void |
assertCompatibility(long id,
String name,
int probecount)
Asserts that this execution data object is compatible with the given parameters. |
long |
getId()
Return the unique identifier for this class. |
String |
getName()
The VM name of the class. |
boolean[] |
getProbes()
Returns the execution data probes. |
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 probes 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[] probes)
ExecutionData object with the given probe data.
id - class identifiername - VM nameprobes - probe data
public ExecutionData(long id,
String name,
int probeCount)
ExecutionData object with the given probe data
length. All probes are set to false.
id - class identifiername - VM nameprobeCount - probe count| Method Detail |
|---|
public long getId()
public String getName()
public boolean[] getProbes()
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 probecount)
throws IllegalStateException
id - other class id, must be the samename - other name, must be equal to this nameprobecount - 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 | |||||||||