34
34
this.instrumentedLines = instrumentedLines;
37
38
public TreeElement getParent() {
41
43
public boolean hasChildren() {
42
44
return (children.size()>0);
45
48
public LinkedList<? extends TreeElement> getChildren() {
49
53
public String getName() {
53
58
public TreeElement getRoot() {
54
59
if (parent == null) return this;
58
64
public int getExecutedLines() {
62
69
public int getInstrumentedLines() {
63
70
return instrumentedLines;
66
74
public float getCoveragePercentage() {
67
75
if (instrumentedLines !=0 )
68
76
return (100.f*executedLines)/(instrumentedLines);