|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.wala.util.graph.impl.NodeWithNumber
com.ibm.wala.ipa.cfg.BasicBlockInContext<T>
public final class BasicBlockInContext<T extends ISSABasicBlock>
A helper class to make the ipcfg work correctly with context-sensitive call graphs.
| Constructor Summary | |
|---|---|
BasicBlockInContext(CGNode node,
T bb)
|
|
| Method Summary | |
|---|---|
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()
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. |
java.util.Iterator<SSAPhiInstruction> |
iteratePhis()
|
java.util.Iterator<SSAPiInstruction> |
iteratePis()
|
java.util.Iterator<SSAInstruction> |
iterator()
|
java.lang.String |
toString()
|
| Methods inherited from class com.ibm.wala.util.graph.impl.NodeWithNumber |
|---|
getGraphNodeId, setGraphNodeId |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.ibm.wala.util.graph.INodeWithNumber |
|---|
getGraphNodeId, setGraphNodeId |
| Constructor Detail |
|---|
public BasicBlockInContext(CGNode node,
T bb)
| Method Detail |
|---|
public int getFirstInstructionIndex()
IBasicBlock
getFirstInstructionIndex in interface IBasicBlock<SSAInstruction>public int getLastInstructionIndex()
IBasicBlock
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()
IBasicBlock
getNumber in interface IBasicBlock<SSAInstruction>public boolean isCatchBlock()
IBasicBlock
isCatchBlock in interface IBasicBlock<SSAInstruction>isCatchBlock in interface ISSABasicBlockpublic boolean isEntryBlock()
IBasicBlock
isEntryBlock in interface IBasicBlock<SSAInstruction>isEntryBlock in interface ISSABasicBlockpublic boolean isExitBlock()
IBasicBlock
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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||