Class SSACFG.ExceptionHandlerBasicBlock
java.lang.Object
com.ibm.wala.ssa.SSACFG.BasicBlock
com.ibm.wala.ssa.SSACFG.ExceptionHandlerBasicBlock
- All Implemented Interfaces:
IBasicBlock<SSAInstruction>, ISSABasicBlock, INodeWithNumber, Iterable<SSAInstruction>
- Enclosing class:
SSACFG
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCaughtExceptionType(TypeReference exceptionType) TODO: make this more efficient if neededTheSSACFG.ExceptionHandlerBasicBlocksubclass will override this.voidsetCatchInstruction(SSAGetCaughtExceptionInstruction catchInstruction) toString()Methods inherited from class SSACFG.BasicBlock
addPhiForLocal, addPhiForStackSlot, addPiForRefAndPath, equals, getFirstInstructionIndex, getGraphNodeId, getLastInstruction, getLastInstructionIndex, getMethod, getNumber, getPhiForLocal, getPhiForStackSlot, getPiForRefAndPath, hashCode, hasPhi, isCatchBlock, isEntryBlock, isExitBlock, iterateNormalInstructions, iteratePhis, iteratePis, iterator, removePhis, setGraphNodeIdModifier and TypeMethodDescriptionvoidaddPhiForLocal(int n, SSAPhiInstruction phi) voidaddPhiForStackSlot(int slot, SSAPhiInstruction phi) voidaddPiForRefAndPath(int n, Object path, SSAPiInstruction pi) booleanintMethod getFirstInstructionIndex.intA non-negative integer which serves as an identifier for this node in it's "dominant" graph.intGet the index of the last instruction in the basic block.intEach basic block should have a unique number in its cfggetPhiForLocal(int n) This method is used during SSA construction.getPhiForStackSlot(int slot) This method is used during SSA construction.getPiForRefAndPath(int n, Object path) inthashCode()booleanhasPhi()booleanIs this block marked as a catch block?booleanDoes this block represent the unique entry to aControlFlowGraphbooleanDoes this block represent the unique exit from aControlFlowGraph?iterator()voidremovePhis(Set<SSAPhiInstruction> toRemove) Remove any phis in the set.voidsetGraphNodeId(int number) Methods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
ExceptionHandlerBasicBlock
public ExceptionHandlerBasicBlock(int number)
-
-
Method Details
-
getCatchInstruction
-
setCatchInstruction
-
getCaughtExceptionTypes
Description copied from class:SSACFG.BasicBlockTheSSACFG.ExceptionHandlerBasicBlocksubclass will override this.- Specified by:
getCaughtExceptionTypesin interfaceISSABasicBlock- Overrides:
getCaughtExceptionTypesin classSSACFG.BasicBlock- Returns:
- the set of exception types this block may catch.
-
toString
- Overrides:
toStringin classSSACFG.BasicBlock
-
addCaughtExceptionType
-
getAllInstructions
Description copied from class:SSACFG.BasicBlockTODO: make this more efficient if needed- Overrides:
getAllInstructionsin classSSACFG.BasicBlock
-