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