public final class ShrikeCFG.BasicBlock extends com.ibm.wala.util.graph.impl.NodeWithNumber implements IBasicBlock<com.ibm.wala.shrikeBT.IInstruction>
| Constructor and Description |
|---|
BasicBlock(int startIndex) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addExceptionalEdges(com.ibm.wala.shrikeBT.IInstruction last)
Add any exceptional edges generated by the last instruction in a basic block.
|
boolean |
equals(java.lang.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.
|
java.util.Iterator<com.ibm.wala.shrikeBT.IInstruction> |
iterator() |
java.lang.String |
toString() |
getGraphNodeId, setGraphNodeIdclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic boolean isCatchBlock()
IBasicBlockisCatchBlock in interface IBasicBlock<com.ibm.wala.shrikeBT.IInstruction>protected void addExceptionalEdges(com.ibm.wala.shrikeBT.IInstruction last)
last - the last instruction in a basic block.public int getLastInstructionIndex()
IBasicBlockIf the result is < 0, the block has no instructions
getLastInstructionIndex in interface IBasicBlock<com.ibm.wala.shrikeBT.IInstruction>public int getFirstInstructionIndex()
IBasicBlockIf the result is < 0, the block has no instructions
getFirstInstructionIndex in interface IBasicBlock<com.ibm.wala.shrikeBT.IInstruction>public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isExitBlock()
IBasicBlockisExitBlock in interface IBasicBlock<com.ibm.wala.shrikeBT.IInstruction>public boolean isEntryBlock()
IBasicBlockisEntryBlock in interface IBasicBlock<com.ibm.wala.shrikeBT.IInstruction>public IMethod getMethod()
getMethod in interface IBasicBlock<com.ibm.wala.shrikeBT.IInstruction>public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int getNumber()
IBasicBlockgetNumber in interface IBasicBlock<com.ibm.wala.shrikeBT.IInstruction>public java.util.Iterator<com.ibm.wala.shrikeBT.IInstruction> iterator()
iterator in interface java.lang.Iterable<com.ibm.wala.shrikeBT.IInstruction>