Record Class ShortCircuitBlock.Operands
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase7.support.ShortCircuitBlock.Operands
- Record Components:
targetVariable- the variable the block's result is bound to (the block's own result operand)left- the LEFT operand evaluation (always runs)leftPrimitive- LEFT's primitive boolean, the short-circuit decisionright- the RIGHT operand evaluation (runs only when LEFT does not decide)resultTemp- the temp the result call writesresultCall- the_and/_ordescriptor over the two operandsscopeId- the scope the block belongs todebugInfo- debug information for the call and the block
- Enclosing class:
ShortCircuitBlock
public static record ShortCircuitBlock.Operands(String targetVariable, OperandEvaluation left, String leftPrimitive, OperandEvaluation right, String resultTemp, CallDetails resultCall, String scopeId, DebugInfo debugInfo)
extends Record
The parts of one block.
-
Constructor Summary
ConstructorsConstructorDescriptionOperands(String targetVariable, OperandEvaluation left, String leftPrimitive, OperandEvaluation right, String resultTemp, CallDetails resultCall, String scopeId, DebugInfo debugInfo) Creates an instance of aOperandsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedebugInforecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.left()Returns the value of theleftrecord component.Returns the value of theleftPrimitiverecord component.Returns the value of theresultCallrecord component.Returns the value of theresultTemprecord component.right()Returns the value of therightrecord component.scopeId()Returns the value of thescopeIdrecord component.Returns the value of thetargetVariablerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Operands
public Operands(String targetVariable, OperandEvaluation left, String leftPrimitive, OperandEvaluation right, String resultTemp, CallDetails resultCall, String scopeId, DebugInfo debugInfo) Creates an instance of aOperandsrecord class.- Parameters:
targetVariable- the value for thetargetVariablerecord componentleft- the value for theleftrecord componentleftPrimitive- the value for theleftPrimitiverecord componentright- the value for therightrecord componentresultTemp- the value for theresultTemprecord componentresultCall- the value for theresultCallrecord componentscopeId- the value for thescopeIdrecord componentdebugInfo- the value for thedebugInforecord 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 withObjects::equals(Object,Object). -
targetVariable
Returns the value of thetargetVariablerecord component.- Returns:
- the value of the
targetVariablerecord component
-
left
-
leftPrimitive
Returns the value of theleftPrimitiverecord component.- Returns:
- the value of the
leftPrimitiverecord component
-
right
-
resultTemp
Returns the value of theresultTemprecord component.- Returns:
- the value of the
resultTemprecord component
-
resultCall
Returns the value of theresultCallrecord component.- Returns:
- the value of the
resultCallrecord component
-
scopeId
-
debugInfo
-