Interface Block
- All Superinterfaces:
- org.plumelib.util.UniqueId
- All Known Subinterfaces:
- ConditionalBlock,- ExceptionBlock,- RegularBlock,- SingleSuccessorBlock,- SpecialBlock
- All Known Implementing Classes:
- BlockImpl,- ConditionalBlockImpl,- ExceptionBlockImpl,- RegularBlockImpl,- SingleSuccessorBlockImpl,- SpecialBlockImpl
public interface Block
extends org.plumelib.util.UniqueId
Represents a basic block in a control flow graph.
- 
Nested Class SummaryNested Classes
- 
Method SummaryMethods inherited from interface org.plumelib.util.UniqueIdgetClassAndUid, getUid
- 
Method Details- 
getTypeBlock.BlockType getType()Returns the type of this basic block.- Returns:
- the type of this basic block
 
- 
getPredecessorsReturns the predecessors of this basic block.- Returns:
- the predecessors of this basic block
 
- 
getSuccessorsReturns the successors of this basic block.- Returns:
- the successors of this basic block
 
- 
getNodesReturns the nodes contained within this basic block. The list may be empty.The following invariant holds. forall n in getNodes() :: n.getBlock() == this - Returns:
- the nodes contained within this basic block
 
- 
getLastNodeReturns the last node of this block, or null if none.- Returns:
- the last node of this block or null
 
 
-