Class ConditionalBlockImpl
java.lang.Object
org.checkerframework.dataflow.cfg.block.BlockImpl
org.checkerframework.dataflow.cfg.block.ConditionalBlockImpl
- All Implemented Interfaces:
- Block,- ConditionalBlock,- org.plumelib.util.UniqueId
Implementation of a conditional basic block.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.checkerframework.dataflow.cfg.block.BlockBlock.BlockType
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected Store.FlowRuleThe initial value says that the ELSE store before a conditional block flows to BOTH of the stores of the else successor.Successor of the else branch.protected Store.FlowRuleThe initial value says that the THEN store before a conditional block flows to BOTH of the stores of the then successor.Successor of the then branch.Fields inherited from class org.checkerframework.dataflow.cfg.block.BlockImplpredecessors, type
- 
Constructor SummaryConstructorsConstructorDescriptionInitialize an empty conditional basic block to be filled with contents and linked to other basic blocks later.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the flow rule for information flowing from this block to its else successor.Returns the entry block of the else branch.Returns the last node of this block, or null if none.getNodes()Returns the nodes contained within this basic block.Returns the successors of this basic block.Returns the flow rule for information flowing from this block to its then successor.Returns the entry block of the then branch.voidSet the flow rule for information flowing from this block to its else successor.voidSet the else branch successor.voidSet the flow rule for information flowing from this block to its then successor.voidSet the then branch successor.toString()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, wait, wait, waitMethods inherited from interface org.checkerframework.dataflow.cfg.block.BlockgetPredecessors, getTypeMethods inherited from interface org.plumelib.util.UniqueIdgetClassAndUid, getUid
- 
Field Details- 
thenSuccessorSuccessor of the then branch.
- 
elseSuccessorSuccessor of the else branch.
- 
thenFlowRuleThe initial value says that the THEN store before a conditional block flows to BOTH of the stores of the then successor.
- 
elseFlowRuleThe initial value says that the ELSE store before a conditional block flows to BOTH of the stores of the else successor.
 
- 
- 
Constructor Details- 
ConditionalBlockImplpublic ConditionalBlockImpl()Initialize an empty conditional basic block to be filled with contents and linked to other basic blocks later.
 
- 
- 
Method Details- 
setThenSuccessorSet the then branch successor.
- 
setElseSuccessorSet the else branch successor.
- 
getThenSuccessorDescription copied from interface:ConditionalBlockReturns the entry block of the then branch.- Specified by:
- getThenSuccessorin interface- ConditionalBlock
- Returns:
- the entry block of the then branch
 
- 
getElseSuccessorDescription copied from interface:ConditionalBlockReturns the entry block of the else branch.- Specified by:
- getElseSuccessorin interface- ConditionalBlock
- Returns:
- the entry block of the else branch
 
- 
getSuccessorsDescription copied from interface:BlockReturns the successors of this basic block.- Specified by:
- getSuccessorsin interface- Block
- Returns:
- the successors of this basic block
 
- 
getThenFlowRuleDescription copied from interface:ConditionalBlockReturns the flow rule for information flowing from this block to its then successor.- Specified by:
- getThenFlowRulein interface- ConditionalBlock
- Returns:
- the flow rule for information flowing from this block to its then successor
 
- 
getElseFlowRuleDescription copied from interface:ConditionalBlockReturns the flow rule for information flowing from this block to its else successor.- Specified by:
- getElseFlowRulein interface- ConditionalBlock
- Returns:
- the flow rule for information flowing from this block to its else successor
 
- 
setThenFlowRuleDescription copied from interface:ConditionalBlockSet the flow rule for information flowing from this block to its then successor.- Specified by:
- setThenFlowRulein interface- ConditionalBlock
- Parameters:
- rule- the new flow rule for information flowing from this block to its then successor
 
- 
setElseFlowRuleDescription copied from interface:ConditionalBlockSet the flow rule for information flowing from this block to its else successor.- Specified by:
- setElseFlowRulein interface- ConditionalBlock
- Parameters:
- rule- the new flow rule for information flowing from this block to its else successor
 
- 
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 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
 
- 
toString
 
-