Modifier and Type | Field and Description |
---|---|
protected CounterImpl |
branches
branch counter
|
static LineImpl |
EMPTY
Empty line without instructions or branches.
|
protected CounterImpl |
instructions
instruction counter
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(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()
ILine
getStatus
in interface ILine
ICounter.EMPTY
,
ICounter.NOT_COVERED
,
ICounter.PARTLY_COVERED
,
ICounter.FULLY_COVERED
public ICounter getInstructionCounter()
ILine
getInstructionCounter
in interface ILine
public ICounter getBranchCounter()
ILine
getBranchCounter
in interface ILine
Copyright © 2009-2012 Mountainminds GmbH & Co. KG. All Rights Reserved.