|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jacoco.core.internal.flow.Instruction
public class Instruction
Representation of a byte code instruction for analysis. Internally used for analysis.
| Constructor Summary | |
|---|---|
Instruction(int line)
New instruction at the given line. |
|
| Method Summary | |
|---|---|
void |
addBranch()
Adds an branch to this instruction. |
int |
getBranches()
Returns the total number of branches starting from this instruction. |
int |
getCoveredBranches()
Returns the number of covered branches starting from this instruction. |
int |
getLine()
Returns the source line this instruction belongs to. |
void |
setCovered()
Marks one branch of this instruction as covered. |
void |
setPredecessor(Instruction predecessor)
Sets the given instruction as a predecessor of this instruction. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Instruction(int line)
line - source line this instruction belongs to| Method Detail |
|---|
public void addBranch()
public void setPredecessor(Instruction predecessor)
predecessor - predecessor instructionaddBranch()public void setCovered()
public int getLine()
public int getBranches()
public int getCoveredBranches()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||