|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.wala.ssa.SSACFG.BasicBlock
public class SSACFG.BasicBlock
A Basic Block in an SSA IR
| Constructor Summary | |
|---|---|
SSACFG.BasicBlock(int number)
|
|
| Method Summary | |
|---|---|
void |
addPhiForLocal(int n,
SSAPhiInstruction phi)
Method addPhiForLocal. |
void |
addPhiForStackSlot(int slot,
SSAPhiInstruction phi)
Method addPhiForStackSlot. |
boolean |
equals(java.lang.Object arg0)
|
java.util.List<SSAInstruction> |
getAllInstructions()
TODO: make this more efficient if needed |
int |
getFirstInstructionIndex()
Method getFirstInstructionIndex. |
int |
getGraphNodeId()
A non-negative integer which serves as an identifier for this node in it's "dominant" graph. |
SSAInstruction |
getLastInstruction()
|
int |
getLastInstructionIndex()
Method getLastInstructionIndex. |
IMethod |
getMethod()
|
int |
getNumber()
Each basic block should have a unique number in its cfg |
SSAPhiInstruction |
getPhiForLocal(int n)
Method getPhiForLocal. |
SSAPhiInstruction |
getPhiForStackSlot(int slot)
Method getPhiForStackSlot. |
int |
hashCode()
|
boolean |
hasPhi()
|
boolean |
isCatchBlock()
Is this block marked as 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<? extends SSAInstruction> |
iteratePhis()
|
java.util.Iterator<SSAPiInstruction> |
iteratePis()
|
java.util.Iterator<IInstruction> |
iterator()
|
void |
removePhis(java.util.Set<SSAPhiInstruction> toRemove)
Remove any phis in the set. |
void |
setGraphNodeId(int number)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SSACFG.BasicBlock(int number)
| Method Detail |
|---|
public int getNumber()
IBasicBlock
getNumber in interface IBasicBlockpublic int getFirstInstructionIndex()
getFirstInstructionIndex in interface IBasicBlockpublic boolean isCatchBlock()
isCatchBlock in interface IBasicBlockisCatchBlock in interface ISSABasicBlockpublic int getLastInstructionIndex()
getLastInstructionIndex in interface IBasicBlockpublic java.util.Iterator<? extends SSAInstruction> iteratePhis()
iteratePhis in interface ISSABasicBlockpublic SSAPhiInstruction getPhiForStackSlot(int slot)
slot -
public SSAPhiInstruction getPhiForLocal(int n)
n -
public void addPhiForStackSlot(int slot,
SSAPhiInstruction phi)
slot - phi -
public void addPhiForLocal(int n,
SSAPhiInstruction phi)
n - phi - public void removePhis(java.util.Set<SSAPhiInstruction> toRemove)
toRemove - public java.util.Iterator<SSAPiInstruction> iteratePis()
iteratePis in interface ISSABasicBlockpublic java.util.List<SSAInstruction> getAllInstructions()
public java.util.Iterator<IInstruction> iterator()
iterator in interface java.lang.Iterable<IInstruction>public boolean hasPhi()
public int getGraphNodeId()
INodeWithNumber
getGraphNodeId in interface INodeWithNumberpublic void setGraphNodeId(int number)
setGraphNodeId in interface INodeWithNumberpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public boolean equals(java.lang.Object arg0)
equals in class java.lang.Objectpublic IMethod getMethod()
getMethod in interface IBasicBlockpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isExitBlock()
IBasicBlock
isExitBlock in interface IBasicBlockisExitBlock in interface ISSABasicBlockpublic boolean isEntryBlock()
IBasicBlock
isEntryBlock in interface IBasicBlockisEntryBlock in interface ISSABasicBlockpublic SSAInstruction getLastInstruction()
getLastInstruction in interface ISSABasicBlock
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||