Class ConditionalJump
java.lang.Object
org.checkerframework.dataflow.cfg.builder.ConditionalJump
An extended node of type 
ExtendedNode.ExtendedNodeType.CONDITIONAL_JUMP.
 Important: In the list of extended nodes, there should not be any labels that point
 to a conditional jump. Furthermore, the node directly ahead of any conditional jump has to be a
 NodeWithExceptionsHolder or NodeHolder, and the node held by that extended node
 is required to be of boolean type.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected BlockImplThe basic block this extended node belongs to (as determined in phase two).protected Store.FlowRuleThe false branch flow rule.protected final org.checkerframework.dataflow.cfg.builder.LabelThe false successor label.protected booleanDoes this node terminate the execution? (e.g., "System.exit()")protected Store.FlowRuleThe true branch flow rule.protected final org.checkerframework.dataflow.cfg.builder.LabelThe true successor label.protected final org.checkerframework.dataflow.cfg.builder.ExtendedNode.ExtendedNodeTypeType of this node.
- 
Constructor SummaryConstructorsConstructorDescriptionConditionalJump(org.checkerframework.dataflow.cfg.builder.Label trueSucc, org.checkerframework.dataflow.cfg.builder.Label falseSucc) Construct a ConditionalJump.
- 
Method SummaryModifier and TypeMethodDescriptiongetBlock()org.checkerframework.dataflow.cfg.builder.LabelReturns the false branch flow rule.org.checkerframework.dataflow.cfg.builder.LabelgetLabel()Returns the label associated with this extended node (only applicable if type isExtendedNode.ExtendedNodeType.CONDITIONAL_JUMPorExtendedNode.ExtendedNodeType.UNCONDITIONAL_JUMP).getNode()Returns the node contained in this extended node (only applicable if the type isNODEorEXCEPTION_NODE).booleanorg.checkerframework.dataflow.cfg.builder.LabelReturns the true branch flow rule.org.checkerframework.dataflow.cfg.builder.ExtendedNode.ExtendedNodeTypegetType()voidvoidSets the false branch flow rule.voidsetTerminatesExecution(boolean terminatesExecution) voidSets the true branch flow rule.toString()Produce a string representation.Returns a verbose string representation of this, useful for debugging.
- 
Field Details- 
trueSuccprotected final org.checkerframework.dataflow.cfg.builder.Label trueSuccThe true successor label.
- 
falseSuccprotected final org.checkerframework.dataflow.cfg.builder.Label falseSuccThe false successor label.
- 
trueFlowRuleThe true branch flow rule.
- 
falseFlowRuleThe false branch flow rule.
- 
blockThe basic block this extended node belongs to (as determined in phase two).
- 
typeprotected final org.checkerframework.dataflow.cfg.builder.ExtendedNode.ExtendedNodeType typeType of this node.
- 
terminatesExecutionprotected boolean terminatesExecutionDoes this node terminate the execution? (e.g., "System.exit()")
 
- 
- 
Constructor Details- 
ConditionalJumppublic ConditionalJump(org.checkerframework.dataflow.cfg.builder.Label trueSucc, org.checkerframework.dataflow.cfg.builder.Label falseSucc) Construct a ConditionalJump.- Parameters:
- trueSucc- true successor label
- falseSucc- false successor label
 
 
- 
- 
Method Details- 
getThenLabelpublic org.checkerframework.dataflow.cfg.builder.Label getThenLabel()
- 
getElseLabelpublic org.checkerframework.dataflow.cfg.builder.Label getElseLabel()
- 
getTrueFlowRuleReturns the true branch flow rule.- Returns:
- the true branch flow rule
 
- 
getFalseFlowRuleReturns the false branch flow rule.- Returns:
- the false branch flow rule
 
- 
setTrueFlowRuleSets the true branch flow rule.- Parameters:
- rule- the new true branch flow rule
 
- 
setFalseFlowRuleSets the false branch flow rule.- Parameters:
- rule- the new false branch flow rule
 
- 
toStringProduce a string representation.- Returns:
- a string representation
- See Also:
 
- 
toStringDebugReturns a verbose string representation of this, useful for debugging.- Returns:
- a string representation of this
 
- 
getTypepublic org.checkerframework.dataflow.cfg.builder.ExtendedNode.ExtendedNodeType getType()
- 
getTerminatesExecutionpublic boolean getTerminatesExecution()
- 
setTerminatesExecutionpublic void setTerminatesExecution(boolean terminatesExecution) 
- 
getNodeReturns the node contained in this extended node (only applicable if the type isNODEorEXCEPTION_NODE).- Returns:
- the node contained in this extended node (only applicable if the type is NODEorEXCEPTION_NODE)
 
- 
getLabelpublic org.checkerframework.dataflow.cfg.builder.Label getLabel()Returns the label associated with this extended node (only applicable if type isExtendedNode.ExtendedNodeType.CONDITIONAL_JUMPorExtendedNode.ExtendedNodeType.UNCONDITIONAL_JUMP).- Returns:
- the label associated with this extended node (only applicable if type is ExtendedNode.ExtendedNodeType.CONDITIONAL_JUMPorExtendedNode.ExtendedNodeType.UNCONDITIONAL_JUMP)
 
- 
getBlock
- 
setBlock
 
-