| Modifier and Type | Field | Description |
|---|---|---|
protected CounterImpl |
branches |
branch counter
|
static LineImpl |
EMPTY |
Empty line without instructions or branches.
|
protected CounterImpl |
instructions |
instruction counter
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object obj) |
|
ICounter |
getBranchCounter() |
Returns the branches counter for this line.
|
ICounter |
getInstructionCounter() |
Returns the instruction counter for this line.
|
int |
getStatus() |
Returns the coverage status of this line, calculated from the
instructions counter and branch counter.
|
int |
hashCode() |
|
abstract LineImpl |
increment(ICounter instructions,
ICounter branches) |
Adds the given counters to this line.
|
public static final LineImpl EMPTY
protected CounterImpl instructions
protected CounterImpl branches
public abstract LineImpl increment(ICounter instructions, ICounter branches)
instructions - instructions to addbranches - branches to addpublic int getStatus()
ILinegetStatus in interface ILineICounter.EMPTY,
ICounter.NOT_COVERED,
ICounter.PARTLY_COVERED,
ICounter.FULLY_COVEREDpublic ICounter getInstructionCounter()
ILinegetInstructionCounter in interface ILinepublic ICounter getBranchCounter()
ILinegetBranchCounter in interface ILinepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018. All rights reserved.