Class LineImpl
java.lang.Object
org.jacoco.core.internal.analysis.LineImpl
- All Implemented Interfaces:
ILine
Implementation of
ILine.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CounterImplbranch counterstatic final LineImplEmpty line without instructions or branches.protected CounterImplinstruction counter -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the branches counter for this line.Returns the instruction counter for this line.intReturns the coverage status of this line, calculated from the instructions counter and branch counter.inthashCode()abstract LineImplAdds the given counters to this line.
-
Field Details
-
EMPTY
Empty line without instructions or branches. -
instructions
instruction counter -
branches
branch counter
-
-
Method Details
-
increment
Adds the given counters to this line.- Parameters:
instructions- instructions to addbranches- branches to add- Returns:
- instance with new counter values
-
getStatus
public int getStatus()Description copied from interface:ILineReturns the coverage status of this line, calculated from the instructions counter and branch counter. -
getInstructionCounter
Description copied from interface:ILineReturns the instruction counter for this line.- Specified by:
getInstructionCounterin interfaceILine- Returns:
- instruction counter
-
getBranchCounter
Description copied from interface:ILineReturns the branches counter for this line.- Specified by:
getBranchCounterin interfaceILine- Returns:
- branches counter
-
hashCode
public int hashCode() -
equals
-