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
FieldsModifier and TypeFieldDescriptionThe set of predecessors.protected final Block.BlockTypeThe type of this basic block. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPredecessor(BlockImpl pred) Returns the predecessors of this basic block.getType()Returns the type of this basic block.longgetUid()voidremovePredecessor(BlockImpl pred) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.checkerframework.dataflow.cfg.block.Block
getLastNode, getNodes, getSuccessorsMethods 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
- Specified by:
getUidin interfaceorg.plumelib.util.UniqueId
-
getType
Description copied from interface:BlockReturns the type of this basic block. -
getPredecessors
Description copied from interface:BlockReturns the predecessors of this basic block.- Specified by:
getPredecessorsin interfaceBlock- Returns:
- the predecessors of this basic block
-
addPredecessor
-
removePredecessor
-