Record Class Terminator.Branch
java.lang.Object
java.lang.Record
io.github.jabrena.juno.analysis.Terminator.Branch
- All Implemented Interfaces:
Terminator
- Enclosing interface:
Terminator
public static record Terminator.Branch(int trueTarget, int falseTarget)
extends Record
implements Terminator
A conditional branch: control goes to
trueTarget or falls through to falseTarget.-
Nested Class Summary
Nested classes/interfaces inherited from interface Terminator
Terminator.Branch, Terminator.Fallthrough, Terminator.Jump, Terminator.Return, Terminator.Switch, Terminator.ThrowModifier and TypeInterfaceDescriptionstatic final recordA conditional branch: control goes totrueTargetor falls through tofalseTarget.static final recordFalls into the next block without an explicit branch instruction.static final recordUnconditionalgoto.static final recordA supported JVM return opcode, or the implicit return past the last instruction of a method.static final recordstatic final recordathrow: control continues at one ofhandlers— the distinct handler offsets whose exception-table ranges cover the throw, in matching order — or leaves the method when none catches it. -
Constructor Summary
ConstructorsConstructorDescriptionBranch(int trueTarget, int falseTarget) Creates an instance of aBranchrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefalseTargetrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.intReturns the value of thetrueTargetrecord component.
-
Constructor Details
-
Branch
public Branch(int trueTarget, int falseTarget) Creates an instance of aBranchrecord class.- Parameters:
trueTarget- the value for thetrueTargetrecord componentfalseTarget- the value for thefalseTargetrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
trueTarget
public int trueTarget()Returns the value of thetrueTargetrecord component.- Returns:
- the value of the
trueTargetrecord component
-
falseTarget
public int falseTarget()Returns the value of thefalseTargetrecord component.- Returns:
- the value of the
falseTargetrecord component
-