Class RegularBlockImpl
java.lang.Object
org.checkerframework.dataflow.cfg.block.BlockImpl
org.checkerframework.dataflow.cfg.block.SingleSuccessorBlockImpl
org.checkerframework.dataflow.cfg.block.RegularBlockImpl
- All Implemented Interfaces:
- Block,- RegularBlock,- SingleSuccessorBlock,- org.plumelib.util.UniqueId
Implementation of a regular basic block.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.checkerframework.dataflow.cfg.block.BlockBlock.BlockType
- 
Field SummaryFieldsModifier and TypeFieldDescriptionInternal representation of the contents.Fields inherited from class org.checkerframework.dataflow.cfg.block.SingleSuccessorBlockImplflowRule, successorFields inherited from class org.checkerframework.dataflow.cfg.block.BlockImplpredecessors, type
- 
Constructor SummaryConstructorsConstructorDescriptionInitialize an empty basic block to be filled with contents and linked to other basic blocks later.
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdd a node to the contents of this basic block.voidAdd multiple nodes to the contents of this basic block.Returns the last node of this block, or null if none.getNodes()Returns the nodes contained within this basic block.Returns the regular successor block.booleanisEmpty()Is this block empty (i.e., does it not contain any contents).toString()Methods inherited from class org.checkerframework.dataflow.cfg.block.SingleSuccessorBlockImplgetFlowRule, getSuccessor, getSuccessors, setFlowRule, setSuccessorMethods inherited from class org.checkerframework.dataflow.cfg.block.BlockImpladdPredecessor, getPredecessors, getType, getUid, removePredecessorMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.checkerframework.dataflow.cfg.block.BlockgetPredecessors, getSuccessors, getTypeMethods inherited from interface org.checkerframework.dataflow.cfg.block.SingleSuccessorBlockgetFlowRule, getSuccessor, setFlowRuleMethods inherited from interface org.plumelib.util.UniqueIdgetClassAndUid, getUid
- 
Field Details- 
contentsInternal representation of the contents.
 
- 
- 
Constructor Details- 
RegularBlockImplpublic RegularBlockImpl()Initialize an empty basic block to be filled with contents and linked to other basic blocks later.
 
- 
- 
Method Details- 
addNodeAdd a node to the contents of this basic block.
- 
addNodesAdd multiple nodes to the contents of this basic block.
- 
getNodesReturns 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 non-empty list. 
- 
getLastNodeDescription copied from interface:BlockReturns the last node of this block, or null if none.- Specified by:
- getLastNodein interface- Block
- Returns:
- the last node of this block or null
 
- 
getRegularSuccessorDescription copied from interface:RegularBlockReturns the regular successor block.- Specified by:
- getRegularSuccessorin interface- RegularBlock
- Returns:
- the regular successor block
 
- 
toString
- 
isEmptypublic boolean isEmpty()Description copied from interface:RegularBlockIs this block empty (i.e., does it not contain any contents).- Specified by:
- isEmptyin interface- RegularBlock
 
 
-