public class InducedCFG.BasicBlock extends NodeWithNumber implements IBasicBlock<SSAInstruction>
Modifier and Type | Method and Description |
---|---|
void |
addPhi(SSAPhiInstruction phiInstruction) |
void |
addPi(SSAPiInstruction piInstruction) |
boolean |
endsInPEI() |
boolean |
endsInReturn() |
boolean |
equals(Object arg0) |
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
|
Collection<SSAPhiInstruction> |
getPhis() |
Collection<SSAPiInstruction> |
getPis() |
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<SSAInstruction> |
iterator() |
String |
toString() |
getGraphNodeId, setGraphNodeId
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getGraphNodeId, setGraphNodeId
forEach, spliterator
public Collection<SSAPhiInstruction> getPhis()
public void addPhi(SSAPhiInstruction phiInstruction)
public Collection<SSAPiInstruction> getPis()
public void addPi(SSAPiInstruction piInstruction)
public int getFirstInstructionIndex()
IBasicBlock
getFirstInstructionIndex
in interface IBasicBlock<SSAInstruction>
public int getLastInstructionIndex()
IBasicBlock
getLastInstructionIndex
in interface IBasicBlock<SSAInstruction>
public boolean isCatchBlock()
IBasicBlock
isCatchBlock
in interface IBasicBlock<SSAInstruction>
public String toString()
toString
in class Object
Object.toString()
public boolean isExitBlock()
IBasicBlock
isExitBlock
in interface IBasicBlock<SSAInstruction>
public boolean isEntryBlock()
IBasicBlock
isEntryBlock
in interface IBasicBlock<SSAInstruction>
public IMethod getMethod()
getMethod
in interface IBasicBlock<SSAInstruction>
public boolean endsInPEI()
public boolean endsInReturn()
public int getNumber()
IBasicBlock
getNumber
in interface IBasicBlock<SSAInstruction>
public Iterator<SSAInstruction> iterator()
iterator
in interface Iterable<SSAInstruction>