Class SingleSuccessorBlockImpl
java.lang.Object
org.checkerframework.dataflow.cfg.block.BlockImpl
org.checkerframework.dataflow.cfg.block.SingleSuccessorBlockImpl
- All Implemented Interfaces:
- Block,- SingleSuccessorBlock,- org.plumelib.util.UniqueId
- Direct Known Subclasses:
- ExceptionBlockImpl,- RegularBlockImpl,- SpecialBlockImpl
A basic block that has at most one successor. SpecialBlockImpl extends this, but exit blocks have
 no successor.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.checkerframework.dataflow.cfg.block.BlockBlock.BlockType
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected Store.FlowRuleThe initial value for the rule below says that EACH store at the end of a single successor block flows to the corresponding store of the successor.Internal representation of the successor.Fields inherited from class org.checkerframework.dataflow.cfg.block.BlockImplpredecessors, type
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedCreates a new SingleSuccessorBlock.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the flow rule for information flowing from this block to its successor.Returns the non-exceptional successor block, ornullif there is no non-exceptional successor.Returns the successors of this basic block.voidsetFlowRule(Store.FlowRule rule) Set the flow rule for information flowing from this block to its successor.voidsetSuccessor(BlockImpl successor) Set a basic block as the successor of this block.Methods 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, toString, wait, wait, waitMethods inherited from interface org.checkerframework.dataflow.cfg.block.BlockgetLastNode, getNodes, getPredecessors, getTypeMethods inherited from interface org.plumelib.util.UniqueIdgetClassAndUid, getUid
- 
Field Details- 
successorInternal representation of the successor.Is set by setSuccessor(org.checkerframework.dataflow.cfg.block.BlockImpl).
- 
flowRuleThe initial value for the rule below says that EACH store at the end of a single successor block flows to the corresponding store of the successor.
 
- 
- 
Constructor Details- 
SingleSuccessorBlockImplCreates a new SingleSuccessorBlock.- Parameters:
- type- the type of this basic block
 
 
- 
- 
Method Details- 
getSuccessorDescription copied from interface:SingleSuccessorBlockReturns the non-exceptional successor block, ornullif there is no non-exceptional successor.- Specified by:
- getSuccessorin interface- SingleSuccessorBlock
- Returns:
- the non-exceptional successor block, or nullif there is no non-exceptional successor
 
- 
getSuccessorsDescription copied from interface:BlockReturns the successors of this basic block.- Specified by:
- getSuccessorsin interface- Block
- Returns:
- the successors of this basic block
 
- 
setSuccessorSet a basic block as the successor of this block.- Parameters:
- successor- the block that will be the successor of this
 
- 
getFlowRuleDescription copied from interface:SingleSuccessorBlockReturns the flow rule for information flowing from this block to its successor.- Specified by:
- getFlowRulein interface- SingleSuccessorBlock
- Returns:
- the flow rule for information flowing from this block to its successor
 
- 
setFlowRuleDescription copied from interface:SingleSuccessorBlockSet the flow rule for information flowing from this block to its successor.- Specified by:
- setFlowRulein interface- SingleSuccessorBlock
- Parameters:
- rule- the new flow rule for information flowing from this block to its successor
 
 
-