net.sourceforge.cobertura.coveragedata
public class TouchCollector extends java.lang.Object implements HasBeenInstrumented
Modifier and Type | Class and Description |
---|---|
private static class |
TouchCollector.JumpTouchData |
private static class |
TouchCollector.LineTouchData |
private static class |
TouchCollector.SwitchTouchData |
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<java.lang.String,java.lang.Integer> |
class2classId |
private static java.util.Map<java.lang.Integer,java.lang.String> |
classId2class |
private static CounterMap<TouchCollector.JumpTouchData> |
jumpTouchData |
private static java.util.concurrent.atomic.AtomicInteger |
lastClassId |
private static CounterMap<TouchCollector.SwitchTouchData> |
switchTouchData |
private static CounterMap<TouchCollector.LineTouchData> |
touchedLines |
Constructor and Description |
---|
TouchCollector() |
Modifier and Type | Method and Description |
---|---|
static void |
applyTouchesOnProjectData(ProjectData projectData) |
private static ClassData |
getClassFor(TouchCollector.LineTouchData key,
ProjectData projectData) |
private static int |
registerClassData(java.lang.String name) |
static void |
touch(java.lang.String classId,
int lineNumber)
This method is only called by code that has been instrumented.
|
static void |
touchJump(java.lang.String classId,
int lineNumber,
int branchNumber,
boolean branch)
This method is only called by code that has been instrumented.
|
static void |
touchSwitch(java.lang.String classId,
int lineNumber,
int switchNumber,
int branch)
This method is only called by code that has been instrumented.
|
private static final CounterMap<TouchCollector.LineTouchData> touchedLines
private static final CounterMap<TouchCollector.SwitchTouchData> switchTouchData
private static final CounterMap<TouchCollector.JumpTouchData> jumpTouchData
private static java.util.concurrent.atomic.AtomicInteger lastClassId
private static final java.util.Map<java.lang.String,java.lang.Integer> class2classId
private static final java.util.Map<java.lang.Integer,java.lang.String> classId2class
public TouchCollector()
private static final int registerClassData(java.lang.String name)
public static final void touchSwitch(java.lang.String classId, int lineNumber, int switchNumber, int branch)
public static final void touch(java.lang.String classId, int lineNumber)
public static final void touchJump(java.lang.String classId, int lineNumber, int branchNumber, boolean branch)
public static void applyTouchesOnProjectData(ProjectData projectData)
private static ClassData getClassFor(TouchCollector.LineTouchData key, ProjectData projectData)