public class SpecialBlockImpl extends SingleSuccessorBlockImpl implements SpecialBlock
SpecialBlock
.SpecialBlock.SpecialBlockType
Block.BlockType
Modifier and Type | Field and Description |
---|---|
protected SpecialBlock.SpecialBlockType |
specialType
The type of this special basic block.
|
flowRule, successor
id, lastId, predecessors, type
Constructor and Description |
---|
SpecialBlockImpl(SpecialBlock.SpecialBlockType type) |
Modifier and Type | Method and Description |
---|---|
@Nullable Node |
getLastNode()
Returns the last node of this block, or null if none.
|
List<Node> |
getNodes()
Returns the nodes contained within this basic block.
|
SpecialBlock.SpecialBlockType |
getSpecialType()
Returns the type of this special basic block.
|
String |
toString() |
getFlowRule, getSuccessor, getSuccessors, setFlowRule, setSuccessor
addPredecessor, getId, getPredecessors, getType, removePredecessor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFlowRule, getSuccessor, setFlowRule
getId, getPredecessors, getSuccessors, getType
protected final SpecialBlock.SpecialBlockType specialType
public SpecialBlockImpl(SpecialBlock.SpecialBlockType type)
public SpecialBlock.SpecialBlockType getSpecialType()
SpecialBlock
getSpecialType
in interface SpecialBlock
public List<Node> getNodes()
The following invariant holds.
forall n in getNodes() :: n.getBlock() == this
This implementation returns an empty list.
public @Nullable Node getLastNode()
Block
getLastNode
in interface Block
null