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 node.
|
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.
|
Constructor and Description |
---|
BlockImpl(Block.BlockType type) |
Modifier and Type | Method and Description |
---|---|
void |
addPredecessor(BlockImpl pred) |
long |
getId() |
Set<BlockImpl> |
getPredecessors() |
Block.BlockType |
getType() |
void |
removePredecessor(BlockImpl pred) |
protected final long id
protected static long lastId
protected final Block.BlockType type
public BlockImpl(Block.BlockType type)
public long getId()
public Block.BlockType getType()
public Set<BlockImpl> getPredecessors()
public void addPredecessor(BlockImpl pred)
public void removePredecessor(BlockImpl pred)