net.sourceforge.cobertura.coveragedata
public class SourceFileData extends CoverageDataContainer implements Comparable, HasBeenInstrumented
| Field Summary | |
|---|---|
| String | name |
| static long | serialVersionUID |
| Constructor Summary | |
|---|---|
| SourceFileData(String name) | |
| Method Summary | |
|---|---|
| void | addClassData(ClassData classData) |
| int | compareTo(Object o)
This is required because we implement Comparable. |
| boolean | contains(String name) |
| boolean | containsInstrumentationInfo() |
| boolean | equals(Object obj)
Returns true if the given object is an instance of the
SourceFileData class, and it contains the same data as this
class. |
| String | getBaseName() |
| SortedSet | getClasses() |
| LineData | getLineCoverage(int lineNumber) |
| String | getName() |
| String | getNormalizedName() |
| String | getPackageName() |
| int | hashCode() |
| boolean | isValidSourceLineNumber(int lineNumber) |
Parameters: name In the format, "net/sourceforge/cobertura/coveragedata/SourceFileData.java"
Returns: The name of this source file without the file extension in the format "net.sourceforge.cobertura.coveragedata.SourceFileData"
Returns: The name of the package that this source file is in. In the format "net.sourceforge.cobertura.coveragedata"