Class ConditionalJump
java.lang.Object
org.checkerframework.dataflow.cfg.builder.ExtendedNode
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.checkerframework.dataflow.cfg.builder.ExtendedNode
ExtendedNode.ExtendedNodeType
-
Field Summary
Modifier and TypeFieldDescriptionprotected Store.FlowRule
The false branch flow rule.protected final Label
The false successor label.protected Store.FlowRule
The true branch flow rule.protected final Label
The true successor label.Fields inherited from class org.checkerframework.dataflow.cfg.builder.ExtendedNode
block, terminatesExecution, type
-
Constructor Summary
ConstructorDescriptionConditionalJump
(Label trueSucc, Label falseSucc) Construct a ConditionalJump. -
Method Summary
Modifier and TypeMethodDescriptionReturns the false branch flow rule.Returns the true branch flow rule.void
Sets the false branch flow rule.void
Sets the true branch flow rule.toString()
Produce a string representation.Returns a verbose string representation of this, useful for debugging.Methods inherited from class org.checkerframework.dataflow.cfg.builder.ExtendedNode
getBlock, getLabel, getNode, getTerminatesExecution, getType, setBlock, setTerminatesExecution
-
Field Details
-
trueSucc
The true successor label. -
falseSucc
The false successor label. -
trueFlowRule
The true branch flow rule. -
falseFlowRule
The false branch flow rule.
-
-
Constructor Details
-
ConditionalJump
Construct a ConditionalJump.- Parameters:
trueSucc
- true successor labelfalseSucc
- false successor label
-
-
Method Details
-
getThenLabel
-
getElseLabel
-
getTrueFlowRule
Returns the true branch flow rule.- Returns:
- the true branch flow rule
-
getFalseFlowRule
Returns the false branch flow rule.- Returns:
- the false branch flow rule
-
setTrueFlowRule
Sets the true branch flow rule.- Parameters:
rule
- the new true branch flow rule
-
setFalseFlowRule
Sets the false branch flow rule.- Parameters:
rule
- the new false branch flow rule
-
toString
Produce a string representation.- Overrides:
toString
in classExtendedNode
- Returns:
- a string representation
- See Also:
-
toStringDebug
Description copied from class:ExtendedNode
Returns a verbose string representation of this, useful for debugging.- Specified by:
toStringDebug
in classExtendedNode
- Returns:
- a string representation of this
-