Record Class IRConditionalJump
java.lang.Object
java.lang.Record
io.github.protasm.jvmud.compiler.ir.IRConditionalJump
- All Implemented Interfaces:
IRNode, IRStatement, IRTerminator
public record IRConditionalJump(int line, IRExpression condition, String trueLabel, String falseLabel)
extends Record
implements IRTerminator
-
Constructor Summary
ConstructorsConstructorDescriptionIRConditionalJump(int line, IRExpression condition, String trueLabel, String falseLabel) Creates an instance of aIRConditionalJumprecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconditionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefalseLabelrecord component.final inthashCode()Returns a hash code value for this object.intline()Returns the value of thelinerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetrueLabelrecord component.
-
Constructor Details
-
IRConditionalJump
Creates an instance of aIRConditionalJumprecord class.- Parameters:
line- the value for thelinerecord componentcondition- the value for theconditionrecord componenttrueLabel- the value for thetrueLabelrecord componentfalseLabel- the value for thefalseLabelrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
line
-
condition
Returns the value of theconditionrecord component.- Returns:
- the value of the
conditionrecord component
-
trueLabel
Returns the value of thetrueLabelrecord component.- Returns:
- the value of the
trueLabelrecord component
-
falseLabel
Returns the value of thefalseLabelrecord component.- Returns:
- the value of the
falseLabelrecord component
-