Class SpecialBlockImpl
- java.lang.Object
-
- org.checkerframework.dataflow.cfg.block.BlockImpl
-
- org.checkerframework.dataflow.cfg.block.SingleSuccessorBlockImpl
-
- org.checkerframework.dataflow.cfg.block.SpecialBlockImpl
-
- All Implemented Interfaces:
Block,SingleSuccessorBlock,SpecialBlock,org.plumelib.util.UniqueId
public class SpecialBlockImpl extends SingleSuccessorBlockImpl implements SpecialBlock
The implementation of aSpecialBlock.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.checkerframework.dataflow.cfg.block.Block
Block.BlockType
-
Nested classes/interfaces inherited from interface org.checkerframework.dataflow.cfg.block.SpecialBlock
SpecialBlock.SpecialBlockType
-
-
Field Summary
Fields Modifier and Type Field Description protected SpecialBlock.SpecialBlockTypespecialTypeThe type of this special basic block.-
Fields inherited from class org.checkerframework.dataflow.cfg.block.SingleSuccessorBlockImpl
flowRule, successor
-
Fields inherited from class org.checkerframework.dataflow.cfg.block.BlockImpl
predecessors, type
-
-
Constructor Summary
Constructors Constructor Description SpecialBlockImpl(SpecialBlock.SpecialBlockType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable NodegetLastNode()Returns the last node of this block, or null if none.java.util.List<Node>getNodes()Returns the nodes contained within this basic block.SpecialBlock.SpecialBlockTypegetSpecialType()Returns the type of this special basic block.java.lang.StringtoString()-
Methods inherited from class org.checkerframework.dataflow.cfg.block.SingleSuccessorBlockImpl
getFlowRule, getSuccessor, getSuccessors, setFlowRule, setSuccessor
-
Methods inherited from class org.checkerframework.dataflow.cfg.block.BlockImpl
addPredecessor, getPredecessors, getType, getUid, removePredecessor
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.checkerframework.dataflow.cfg.block.Block
getPredecessors, getSuccessors, getType
-
Methods inherited from interface org.checkerframework.dataflow.cfg.block.SingleSuccessorBlock
getFlowRule, getSuccessor, setFlowRule
-
-
-
-
Field Detail
-
specialType
protected final SpecialBlock.SpecialBlockType specialType
The type of this special basic block.
-
-
Constructor Detail
-
SpecialBlockImpl
public SpecialBlockImpl(SpecialBlock.SpecialBlockType type)
-
-
Method Detail
-
getSpecialType
public SpecialBlock.SpecialBlockType getSpecialType()
Description copied from interface:SpecialBlockReturns the type of this special basic block.- Specified by:
getSpecialTypein interfaceSpecialBlock- Returns:
- the type of this special basic block
-
getNodes
public java.util.List<Node> getNodes()
Returns the nodes contained within this basic block. The list may be empty.The following invariant holds.
forall n in getNodes() :: n.getBlock() == this
This implementation returns an empty list.
-
getLastNode
public @Nullable Node getLastNode()
Description copied from interface:BlockReturns the last node of this block, or null if none.- Specified by:
getLastNodein interfaceBlock- Returns:
- the last node of this block or
null
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-