public abstract class BlockImpl extends Object implements Block
Block implementation hierarchy.Block.BlockType| Modifier and Type | Field and Description |
|---|---|
protected Set<BlockImpl> |
predecessors
The set of predecessors.
|
protected Block.BlockType |
type
The type of this basic block.
|
| Modifier | Constructor and Description |
|---|---|
protected |
BlockImpl(Block.BlockType type)
Create a new BlockImpl.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPredecessor(BlockImpl pred) |
Set<Block> |
getPredecessors()
Returns the predecessors of this basic block.
|
Block.BlockType |
getType()
Returns the type of this basic block.
|
long |
getUid()
Returns the unique ID of this object.
|
void |
removePredecessor(BlockImpl pred) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLastNode, getNodes, getSuccessorsprotected final Block.BlockType type
protected BlockImpl(Block.BlockType type)
type - the type of this basic blockpublic long getUid(@UnknownInitialization BlockImpl this)
getUid in interface org.plumelib.util.UniqueIdpublic Block.BlockType getType()
Blockpublic Set<Block> getPredecessors()
BlockgetPredecessors in interface Blockpublic void addPredecessor(BlockImpl pred)
public void removePredecessor(BlockImpl pred)