Package com.ibm.wala.ssa
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
public class SSACFG.ExceptionHandlerBasicBlock extends SSACFG.BasicBlock
-
-
Constructor Summary
Constructors Constructor Description ExceptionHandlerBasicBlock(int number)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCaughtExceptionType(TypeReference exceptionType)
List<SSAInstruction>
getAllInstructions()
TODO: make this more efficient if neededSSAGetCaughtExceptionInstruction
getCatchInstruction()
Iterator<TypeReference>
getCaughtExceptionTypes()
TheSSACFG.ExceptionHandlerBasicBlock
subclass will override this.void
setCatchInstruction(SSAGetCaughtExceptionInstruction catchInstruction)
String
toString()
-
Methods inherited from class com.ibm.wala.ssa.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, setGraphNodeId
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
getCatchInstruction
public SSAGetCaughtExceptionInstruction getCatchInstruction()
-
setCatchInstruction
public void setCatchInstruction(SSAGetCaughtExceptionInstruction catchInstruction)
-
getCaughtExceptionTypes
public Iterator<TypeReference> getCaughtExceptionTypes()
Description copied from class:SSACFG.BasicBlock
TheSSACFG.ExceptionHandlerBasicBlock
subclass will override this.- Specified by:
getCaughtExceptionTypes
in interfaceISSABasicBlock
- Overrides:
getCaughtExceptionTypes
in classSSACFG.BasicBlock
- Returns:
- the set of exception types this block may catch.
- See Also:
ISSABasicBlock.getCaughtExceptionTypes()
-
toString
public String toString()
- Overrides:
toString
in classSSACFG.BasicBlock
- See Also:
Object.toString()
-
addCaughtExceptionType
public void addCaughtExceptionType(TypeReference exceptionType)
-
getAllInstructions
public List<SSAInstruction> getAllInstructions()
Description copied from class:SSACFG.BasicBlock
TODO: make this more efficient if needed- Overrides:
getAllInstructions
in classSSACFG.BasicBlock
-
-