public class InducedCFG.BasicBlock extends com.ibm.wala.util.graph.impl.NodeWithNumber implements IBasicBlock<SSAInstruction>
| Modifier and Type | Method and Description |
|---|---|
void |
addPhi(SSAPhiInstruction phiInstruction) |
void |
addPi(SSAPiInstruction piInstruction) |
boolean |
endsInPEI() |
boolean |
endsInReturn() |
boolean |
equals(java.lang.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
|
java.util.Collection<SSAPhiInstruction> |
getPhis() |
java.util.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.
|
java.util.Iterator<SSAInstruction> |
iterator() |
java.lang.String |
toString() |
getGraphNodeId, setGraphNodeIdclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic java.util.Collection<SSAPhiInstruction> getPhis()
public void addPhi(SSAPhiInstruction phiInstruction)
public java.util.Collection<SSAPiInstruction> getPis()
public void addPi(SSAPiInstruction piInstruction)
public boolean equals(java.lang.Object arg0)
equals in class java.lang.Objectpublic 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 boolean isCatchBlock()
IBasicBlockisCatchBlock in interface IBasicBlock<SSAInstruction>public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public boolean isExitBlock()
IBasicBlockisExitBlock in interface IBasicBlock<SSAInstruction>public boolean isEntryBlock()
IBasicBlockisEntryBlock in interface IBasicBlock<SSAInstruction>public IMethod getMethod()
getMethod in interface IBasicBlock<SSAInstruction>public boolean endsInPEI()
public boolean endsInReturn()
public int getNumber()
IBasicBlockgetNumber in interface IBasicBlock<SSAInstruction>public java.util.Iterator<SSAInstruction> iterator()
iterator in interface java.lang.Iterable<SSAInstruction>