Class BlockImpl
java.lang.Object
org.checkerframework.dataflow.cfg.block.BlockImpl
- All Implemented Interfaces:
Block
,org.plumelib.util.UniqueId
- Direct Known Subclasses:
ConditionalBlockImpl
,SingleSuccessorBlockImpl
Base class of the
Block
implementation hierarchy.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.checkerframework.dataflow.cfg.block.Block
Block.BlockType
-
Field Summary
Modifier and TypeFieldDescriptionThe set of predecessors.protected final Block.BlockType
The type of this basic block. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPredecessor
(BlockImpl pred) Returns the predecessors of this basic block.getType()
Returns the type of this basic block.long
getUid()
Returns the unique ID of this object.void
removePredecessor
(BlockImpl pred) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.checkerframework.dataflow.cfg.block.Block
getLastNode, getNodes, getSuccessors
Methods inherited from interface org.plumelib.util.UniqueId
getClassAndUid
-
Field Details
-
type
The type of this basic block. -
predecessors
The set of predecessors.
-
-
Constructor Details
-
BlockImpl
Create a new BlockImpl.- Parameters:
type
- the type of this basic block
-
-
Method Details
-
getUid
Returns the unique ID of this object.- Specified by:
getUid
in interfaceorg.plumelib.util.UniqueId
- Returns:
- the unique ID of this object
-
getType
Description copied from interface:Block
Returns the type of this basic block. -
getPredecessors
Description copied from interface:Block
Returns the predecessors of this basic block.- Specified by:
getPredecessors
in interfaceBlock
- Returns:
- the predecessors of this basic block
-
addPredecessor
-
removePredecessor
-