Record Class UnaryOperatorParams
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase7.support.UnaryOperatorParams
- Record Components:
operand- Variable name holding the operandoperator- Operator method name (e.g., "++", "--", "_neg")operandType- Type of the operandresultType- Expected result typeresultTemp- Variable name to store resultscopeId- Scope ID for memory managementdebugInfo- Debug information for instructions
public record UnaryOperatorParams(String operand, String operator, ISymbol operandType, ISymbol resultType, String resultTemp, String scopeId, DebugInfo debugInfo)
extends Record
Parameters for unary operator invocation.
Encapsulates all data needed to invoke a unary 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.operand()Returns the value of theoperandrecord component.Returns the value of theoperandTyperecord component.operator()Returns the value of theoperatorrecord component.Returns the value of theresultTemprecord component.Returns the value of theresultTyperecord component.scopeId()Returns the value of thescopeIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UnaryOperatorParams
public UnaryOperatorParams(String operand, String operator, ISymbol operandType, ISymbol resultType, String resultTemp, String scopeId, DebugInfo debugInfo) Creates an instance of aUnaryOperatorParamsrecord class.- Parameters:
operand- the value for theoperandrecord componentoperator- the value for theoperatorrecord componentoperandType- the value for theoperandTyperecord 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). -
operand
-
operator
-
operandType
Returns the value of theoperandTyperecord component.- Returns:
- the value of the
operandTyperecord component
-
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
-