net.sourceforge.cobertura.coveragedata
public class LineData extends Object implements Comparable, CoverageData, HasBeenInstrumented, Serializable
This class implements HasBeenInstrumented so that when cobertura instruments itself, it will omit this class. It does this to avoid an infinite recursion problem because instrumented classes make use of this class.
Field Summary | |
---|---|
long | hits |
List | jumps |
int | lineNumber |
String | methodDescriptor |
String | methodName |
static long | serialVersionUID |
List | switches |
Constructor Summary | |
---|---|
LineData(int lineNumber) | |
LineData(int lineNumber, String methodName, String methodDescriptor) |
Method Summary | |
---|---|
void | addJump(int jumpNumber) |
void | addSwitch(int switchNumber, int[] keys) |
void | addSwitch(int switchNumber, int min, int max) |
int | compareTo(Object o)
This is required because we implement Comparable. |
boolean | equals(Object obj) |
double | getBranchCoverageRate() |
String | getConditionCoverage() |
String | getConditionCoverage(int index) |
Object | getConditionData(int index) |
int | getConditionSize() |
long | getHits() |
JumpData | getJumpData(int jumpNumber) |
double | getLineCoverageRate() |
int | getLineNumber() |
String | getMethodDescriptor() |
String | getMethodName() |
int | getNumberOfCoveredBranches() |
int | getNumberOfCoveredLines() |
int | getNumberOfValidBranches() |
int | getNumberOfValidLines() |
SwitchData | getSwitchData(int switchNumber, SwitchData data) |
boolean | hasBranch() |
int | hashCode() |
boolean | isCovered() |
void | merge(CoverageData coverageData) |
void | setMethodNameAndDescriptor(String name, String descriptor) |
void | touch() |
void | touchJump(int jumpNumber, boolean branch) |
void | touchSwitch(int switchNumber, int branch) |
See Also: getNumberOfCoveredBranches