public abstract class SingleSuccessorBlockImpl extends BlockImpl implements SingleSuccessorBlock
Block.BlockType| Modifier and Type | Field and Description |
|---|---|
protected Store.FlowRule |
flowRule
The rule below say that EACH store at the end of a single
successor block flow to the corresponding store of the successor.
|
protected BlockImpl |
successor
Internal representation of the successor.
|
id, lastId, predecessors, type| Constructor and Description |
|---|
SingleSuccessorBlockImpl() |
| Modifier and Type | Method and Description |
|---|---|
Store.FlowRule |
getFlowRule() |
Block |
getSuccessor() |
void |
setFlowRule(Store.FlowRule rule)
Set the flow rule for information flowing from this block to its successor.
|
void |
setSuccessor(BlockImpl successor)
Set a basic block as the successor of this block.
|
addPredecessor, getId, getPredecessors, getType, removePredecessorprotected BlockImpl successor
protected Store.FlowRule flowRule
public Block getSuccessor()
getSuccessor in interface SingleSuccessorBlocknull if there is
no successor.public void setSuccessor(BlockImpl successor)
public Store.FlowRule getFlowRule()
getFlowRule in interface SingleSuccessorBlockpublic void setFlowRule(Store.FlowRule rule)
SingleSuccessorBlocksetFlowRule in interface SingleSuccessorBlock