Record Class BinaryOperatorParams
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase7.support.BinaryOperatorParams
- Record Components:
leftOperand- Variable name holding the left operandrightOperand- Variable name holding the right operandoperator- Operator method name (e.g., "+", "<", "<=>")leftType- Type of left operandrightType- Type of right operandresultType- Expected result typeresultTemp- Variable name to store resultscopeId- Scope ID for memory managementdebugInfo- Debug information for instructions
public record BinaryOperatorParams(String leftOperand, String rightOperand, String operator, ISymbol leftType, ISymbol rightType, ISymbol resultType, String resultTemp, String scopeId, DebugInfo debugInfo)
extends Record
Parameters for binary operator invocation.
Encapsulates all data needed to invoke a binary operator with proper memory management and type resolution.
-
Constructor Summary
Constructors -
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.Returns the value of theleftOperandrecord component.leftType()Returns the value of theleftTyperecord component.operator()Returns the value of theoperatorrecord component.Returns the value of theresultTemprecord component.Returns the value of theresultTyperecord component.Returns the value of therightOperandrecord component.Returns the value of therightTyperecord component.scopeId()Returns the value of thescopeIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BinaryOperatorParams
public BinaryOperatorParams(String leftOperand, String rightOperand, String operator, ISymbol leftType, ISymbol rightType, ISymbol resultType, String resultTemp, String scopeId, DebugInfo debugInfo) Creates an instance of aBinaryOperatorParamsrecord class.- Parameters:
leftOperand- the value for theleftOperandrecord componentrightOperand- the value for therightOperandrecord componentoperator- the value for theoperatorrecord componentleftType- the value for theleftTyperecord componentrightType- the value for therightTyperecord componentresultType- the value for theresultTyperecord componentresultTemp- the value for theresultTemprecord 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). -
leftOperand
Returns the value of theleftOperandrecord component.- Returns:
- the value of the
leftOperandrecord component
-
rightOperand
Returns the value of therightOperandrecord component.- Returns:
- the value of the
rightOperandrecord component
-
operator
-
leftType
-
rightType
-
resultType
Returns the value of theresultTyperecord component.- Returns:
- the value of the
resultTyperecord component
-
resultTemp
Returns the value of theresultTemprecord component.- Returns:
- the value of the
resultTemprecord component
-
scopeId
-
debugInfo
-