public final class ShrikeCFG.BasicBlock extends NodeWithNumber implements IBasicBlock<IInstruction>
| Constructor and Description |
|---|
BasicBlock(int startIndex) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addExceptionalEdges(IInstruction last)
Add any exceptional edges generated by the last instruction in a basic block.
|
boolean |
equals(Object o) |
int |
getFirstInstructionIndex()
Get the index of the first instruction in the basic block.
|
int |
getLastInstructionIndex()
Get the index of the last instruction in the basic block.
|
IMethod |
getMethod() |
int |
getNumber()
Each basic block should have a unique number in its cfg
|
int |
hashCode() |
boolean |
isCatchBlock()
Return true if the basic block represents a catch block.
|
boolean |
isEntryBlock()
Return true if the basic block represents the unique entry block.
|
boolean |
isExitBlock()
Return true if the basic block represents the unique exit block.
|
Iterator<IInstruction> |
iterator() |
String |
toString() |
getGraphNodeId, setGraphNodeIdclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetGraphNodeId, setGraphNodeIdforEach, spliteratorpublic boolean isCatchBlock()
IBasicBlockisCatchBlock in interface IBasicBlock<IInstruction>protected void addExceptionalEdges(IInstruction last)
last - the last instruction in a basic block.public int getLastInstructionIndex()
IBasicBlockgetLastInstructionIndex in interface IBasicBlock<IInstruction>public int getFirstInstructionIndex()
IBasicBlockgetFirstInstructionIndex in interface IBasicBlock<IInstruction>public boolean isExitBlock()
IBasicBlockisExitBlock in interface IBasicBlock<IInstruction>public boolean isEntryBlock()
IBasicBlockisEntryBlock in interface IBasicBlock<IInstruction>public IMethod getMethod()
getMethod in interface IBasicBlock<IInstruction>public int getNumber()
IBasicBlockgetNumber in interface IBasicBlock<IInstruction>public Iterator<IInstruction> iterator()
iterator in interface Iterable<IInstruction>