Interface ISSABasicBlock
- All Superinterfaces:
IBasicBlock<SSAInstruction>, INodeWithNumber, Iterable<SSAInstruction>
- All Known Subinterfaces:
IExplodedBasicBlock
- All Known Implementing Classes:
BasicBlockInContext, SSACFG.BasicBlock, SSACFG.ExceptionHandlerBasicBlock
Common interface to all SSA BasicBlocks
-
Method Summary
Modifier and TypeMethodDescriptionbooleanIs this block a catch blockbooleanDoes this block represent the unique entry to aControlFlowGraphbooleanDoes this block represent the unique exit from aControlFlowGraph?Methods inherited from interface IBasicBlock
getFirstInstructionIndex, getLastInstructionIndex, getMethod, getNumberModifier and TypeMethodDescriptionintGet the index of the first instruction in the basic block.intGet the index of the last instruction in the basic block.intEach basic block should have a unique number in its cfgMethods inherited from interface INodeWithNumber
getGraphNodeId, setGraphNodeIdModifier and TypeMethodDescriptionintA non-negative integer which serves as an identifier for this node in it's "dominant" graph.voidsetGraphNodeId(int number) Methods inherited from interface Iterable
forEach, iterator, spliterator
-
Method Details
-
isCatchBlock
boolean isCatchBlock()Is this block a catch block- Specified by:
isCatchBlockin interfaceIBasicBlock<SSAInstruction>- Returns:
- true if the basic block represents a catch block.
-
isExitBlock
boolean isExitBlock()Does this block represent the unique exit from aControlFlowGraph?- Specified by:
isExitBlockin interfaceIBasicBlock<SSAInstruction>- Returns:
- true if the basic block represents the unique exit block.
-
isEntryBlock
boolean isEntryBlock()Does this block represent the unique entry to aControlFlowGraph- Specified by:
isEntryBlockin interfaceIBasicBlock<SSAInstruction>- Returns:
- true if the basic block represents the unique entry block.
-
iteratePhis
Iterator<SSAPhiInstruction> iteratePhis()- Returns:
- the phi instructions incoming to this block
-
iteratePis
Iterator<SSAPiInstruction> iteratePis()- Returns:
- the pi instructions incoming to this block
-
getLastInstruction
SSAInstruction getLastInstruction()- Returns:
- the last instruction in this block.
-
getCaughtExceptionTypes
Iterator<TypeReference> getCaughtExceptionTypes()- Returns:
- the set of exception types this block may catch.
-