public final class ShrikeCFG.BasicBlock extends com.ibm.wala.util.graph.impl.NodeWithNumber implements IBasicBlock<com.ibm.wala.shrikeBT.IInstruction>
| Constructor and Description |
|---|
ShrikeCFG.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(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<com.ibm.wala.shrikeBT.IInstruction> |
iterator() |
String |
toString() |
getGraphNodeId, setGraphNodeIdpublic 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()
IBasicBlockgetLastInstructionIndex in interface IBasicBlock<com.ibm.wala.shrikeBT.IInstruction>public int getFirstInstructionIndex()
IBasicBlockgetFirstInstructionIndex in interface IBasicBlock<com.ibm.wala.shrikeBT.IInstruction>public 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 getNumber()
IBasicBlockgetNumber in interface IBasicBlock<com.ibm.wala.shrikeBT.IInstruction>Copyright © 2015. All rights reserved.