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(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, setGraphNodeIdpublic Collection<SSAPhiInstruction> getPhis()
public void addPhi(SSAPhiInstruction phiInstruction)
public Collection<SSAPiInstruction> getPis()
public void addPi(SSAPiInstruction piInstruction)
public int getFirstInstructionIndex()
IBasicBlockgetFirstInstructionIndex in interface IBasicBlock<SSAInstruction>public int getLastInstructionIndex()
IBasicBlockgetLastInstructionIndex in interface IBasicBlock<SSAInstruction>public boolean isCatchBlock()
IBasicBlockisCatchBlock in interface IBasicBlock<SSAInstruction>public String toString()
toString in class 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 Iterator<SSAInstruction> iterator()
iterator in interface Iterable<SSAInstruction>Copyright © 2015. All rights reserved.