Class ExceptionBlockImpl
java.lang.Object
org.checkerframework.dataflow.cfg.block.BlockImpl
org.checkerframework.dataflow.cfg.block.SingleSuccessorBlockImpl
org.checkerframework.dataflow.cfg.block.ExceptionBlockImpl
- All Implemented Interfaces:
- Block,- ExceptionBlock,- SingleSuccessorBlock,- org.plumelib.util.UniqueId
Implementation of 
ExceptionBlock.- 
Nested Class SummaryNested classes/interfaces inherited from interface org.checkerframework.dataflow.cfg.block.BlockBlock.BlockType
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final Map<TypeMirror,Set<Block>> Set of exceptional successors.The node of this block.Fields inherited from class org.checkerframework.dataflow.cfg.block.SingleSuccessorBlockImplflowRule, successorFields inherited from class org.checkerframework.dataflow.cfg.block.BlockImplpredecessors, type
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddExceptionalSuccessor(BlockImpl b, TypeMirror cause) Add an exceptional successor.Returns the list of exceptional successor blocks as an unmodifiable map.Returns the last node of this block, or null if none.getNode()Returns the node of this block.getNodes()Returns the nodes contained within this basic block.Returns the successors of this basic block.voidSet the node.toString()Methods inherited from class org.checkerframework.dataflow.cfg.block.SingleSuccessorBlockImplgetFlowRule, getSuccessor, 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, getTypeMethods inherited from interface org.checkerframework.dataflow.cfg.block.SingleSuccessorBlockgetFlowRule, getSuccessor, setFlowRuleMethods inherited from interface org.plumelib.util.UniqueIdgetClassAndUid, getUid
- 
Field Details- 
nodeThe node of this block.
- 
exceptionalSuccessorsSet of exceptional successors.
 
- 
- 
Constructor Details- 
ExceptionBlockImplpublic ExceptionBlockImpl()Create an empty exceptional block.
 
- 
- 
Method Details- 
setNodeSet the node.
- 
getNodeDescription copied from interface:ExceptionBlockReturns the node of this block.- Specified by:
- getNodein interface- ExceptionBlock
- Returns:
- the node of this 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 a singleton 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
 
- 
addExceptionalSuccessorAdd an exceptional successor.- Parameters:
- b- the successor
- cause- the exception type that leads to the given block
 
- 
getExceptionalSuccessorsDescription copied from interface:ExceptionBlockReturns the list of exceptional successor blocks as an unmodifiable map.- Specified by:
- getExceptionalSuccessorsin interface- ExceptionBlock
- Returns:
- the list of exceptional successor blocks as an unmodifiable map
 
- 
getSuccessorsDescription copied from interface:BlockReturns the successors of this basic block.- Specified by:
- getSuccessorsin interface- Block
- Overrides:
- getSuccessorsin class- SingleSuccessorBlockImpl
- Returns:
- the successors of this basic block
 
- 
toString
 
-