public final class BasicBlockInContext<T extends ISSABasicBlock> extends NodeWithNumber implements ISSABasicBlock
Constructor and Description |
---|
BasicBlockInContext(CGNode node,
T bb) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
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 ? |
Iterator<SSAPhiInstruction> |
iteratePhis() |
Iterator<SSAPiInstruction> |
iteratePis() |
Iterator<SSAInstruction> |
iterator() |
String |
toString() |
getGraphNodeId, setGraphNodeId
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getGraphNodeId, setGraphNodeId
forEach, spliterator
public int getFirstInstructionIndex()
IBasicBlock
getFirstInstructionIndex
in interface IBasicBlock<SSAInstruction>
public int getLastInstructionIndex()
IBasicBlock
getLastInstructionIndex
in interface IBasicBlock<SSAInstruction>
public Iterator<SSAInstruction> iterator()
iterator
in interface Iterable<SSAInstruction>
public IMethod getMethod()
getMethod
in interface IBasicBlock<SSAInstruction>
public int getNumber()
IBasicBlock
getNumber
in interface IBasicBlock<SSAInstruction>
public boolean isCatchBlock()
ISSABasicBlock
isCatchBlock
in interface IBasicBlock<SSAInstruction>
isCatchBlock
in interface ISSABasicBlock
public boolean isEntryBlock()
ISSABasicBlock
ControlFlowGraph
isEntryBlock
in interface IBasicBlock<SSAInstruction>
isEntryBlock
in interface ISSABasicBlock
public boolean isExitBlock()
ISSABasicBlock
ControlFlowGraph
?isExitBlock
in interface IBasicBlock<SSAInstruction>
isExitBlock
in interface ISSABasicBlock
public T getDelegate()
public CGNode getNode()
public Iterator<TypeReference> getCaughtExceptionTypes()
getCaughtExceptionTypes
in interface ISSABasicBlock
public SSAInstruction getLastInstruction()
getLastInstruction
in interface ISSABasicBlock
public Iterator<SSAPhiInstruction> iteratePhis()
iteratePhis
in interface ISSABasicBlock
public Iterator<SSAPiInstruction> iteratePis()
iteratePis
in interface ISSABasicBlock