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