public abstract class LineMapper<T extends CoverageData>
extends java.lang.Object
| Constructor and Description |
|---|
LineMapper() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract T[] |
createArray(int size) |
protected abstract T |
createNewLine(T targetLine,
int line) |
static <T> void |
dropMappedLines(FileMapData[] mappings,
T[] lines,
java.lang.String className)
Remove all lines that are generated by inline.
|
protected abstract T[] |
getLines(ClassData classData) |
T[] |
mapLines(LineMapData[] linesMap,
ClassData sourceClassData,
ClassData targetClassData)
Apply line mappings: move hits from original line in bytecode to the mapped line.
|
protected abstract T[] createArray(int size)
public T[] mapLines(LineMapData[] linesMap, ClassData sourceClassData, ClassData targetClassData)
linesMap - line mappings from target class to source classsourceClassData - the class to which the mapped lines are movedtargetClassData - the class which initially contains the mapped lines,
at the end of this method all mapped lines in this class are set to nullpublic static <T> void dropMappedLines(FileMapData[] mappings, T[] lines, java.lang.String className)