public abstract class BlockImpl extends java.lang.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 java.util.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() |
java.util.Set<BlockImpl> |
getPredecessors() |
Block.BlockType |
getType() |
void |
removePredecessor(BlockImpl pred) |
protected long id
protected static long lastId
protected Block.BlockType type
protected java.util.Set<BlockImpl> predecessors
public long getId()
public Block.BlockType getType()
public java.util.Set<BlockImpl> getPredecessors()
public void addPredecessor(BlockImpl pred)
public void removePredecessor(BlockImpl pred)