public final class BasicBlockInContext<T extends ISSABasicBlock> extends com.ibm.wala.util.graph.impl.NodeWithNumber implements ISSABasicBlock
| Constructor and Description |
|---|
BasicBlockInContext(CGNode node,
T bb) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Iterator<TypeReference> |
getCaughtExceptionTypes() |
T |
getDelegate() |
int |
getFirstInstructionIndex()
Get the index of the first instruction in the basic block.
|
SSAInstruction |
getLastInstruction() |
int |
getLastInstructionIndex()
Get the index of the last instruction in the basic block.
|
IMethod |
getMethod() |
CGNode |
getNode() |
int |
getNumber()
Each basic block should have a unique number in its cfg
|
int |
hashCode() |
boolean |
isCatchBlock()
Is this block a catch block
|
boolean |
isEntryBlock()
Does this block represent the unique entry to a
ControlFlowGraph |
boolean |
isExitBlock()
Does this block represent the unique exit from a
ControlFlowGraph? |
java.util.Iterator<SSAPhiInstruction> |
iteratePhis() |
java.util.Iterator<SSAPiInstruction> |
iteratePis() |
java.util.Iterator<SSAInstruction> |
iterator() |
java.lang.String |
toString() |
getGraphNodeId, setGraphNodeIdclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic int getFirstInstructionIndex()
IBasicBlockIf the result is < 0, the block has no instructions
getFirstInstructionIndex in interface IBasicBlock<SSAInstruction>public int getLastInstructionIndex()
IBasicBlockIf the result is < 0, the block has no instructions
getLastInstructionIndex in interface IBasicBlock<SSAInstruction>public java.util.Iterator<SSAInstruction> iterator()
iterator in interface java.lang.Iterable<SSAInstruction>public IMethod getMethod()
getMethod in interface IBasicBlock<SSAInstruction>public int getNumber()
IBasicBlockgetNumber in interface IBasicBlock<SSAInstruction>public boolean isCatchBlock()
ISSABasicBlockisCatchBlock in interface IBasicBlock<SSAInstruction>isCatchBlock in interface ISSABasicBlockpublic boolean isEntryBlock()
ISSABasicBlockControlFlowGraphisEntryBlock in interface IBasicBlock<SSAInstruction>isEntryBlock in interface ISSABasicBlockpublic boolean isExitBlock()
ISSABasicBlockControlFlowGraph?isExitBlock in interface IBasicBlock<SSAInstruction>isExitBlock in interface ISSABasicBlockpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic T getDelegate()
public CGNode getNode()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Iterator<TypeReference> getCaughtExceptionTypes()
getCaughtExceptionTypes in interface ISSABasicBlockpublic SSAInstruction getLastInstruction()
getLastInstruction in interface ISSABasicBlockpublic java.util.Iterator<SSAPhiInstruction> iteratePhis()
iteratePhis in interface ISSABasicBlockpublic java.util.Iterator<SSAPiInstruction> iteratePis()
iteratePis in interface ISSABasicBlock