public abstract class BlockImpl extends Object implements Block
Block
implementation hierarchy.Block.BlockType
Modifier and Type | Field and Description |
---|---|
protected long |
id
A unique ID for this block.
|
protected static long |
lastId
The last ID that has already been used.
|
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) |
long |
getId()
Returns the unique identifier of this block.
|
Set<Block> |
getPredecessors()
Returns the predecessors of this basic block.
|
Block.BlockType |
getType()
Returns the type of this basic block.
|
void |
removePredecessor(BlockImpl pred) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLastNode, getNodes, getSuccessors
protected final long id
protected static long lastId
protected final Block.BlockType type
protected BlockImpl(Block.BlockType type)
type
- the type of this basic blockpublic long getId()
Block
public Block.BlockType getType()
Block
public Set<Block> getPredecessors()
Block
getPredecessors
in interface Block
public void addPredecessor(BlockImpl pred)
public void removePredecessor(BlockImpl pred)