Record Class PromotionParams
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase7.support.PromotionParams
- Record Components:
sourceType- The type of the value being promoted (e.g., Integer)sourceVariable- The variable name holding the value to promotedebugInfo- Debug information for generated instructions
-
Constructor Summary
ConstructorsConstructorDescriptionPromotionParams(ISymbol sourceType, String sourceVariable, DebugInfo debugInfo) Creates an instance of aPromotionParamsrecord 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.Returns the value of thesourceTyperecord component.Returns the value of thesourceVariablerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PromotionParams
Creates an instance of aPromotionParamsrecord class.- Parameters:
sourceType- the value for thesourceTyperecord componentsourceVariable- the value for thesourceVariablerecord 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). -
sourceType
Returns the value of thesourceTyperecord component.- Returns:
- the value of the
sourceTyperecord component
-
sourceVariable
Returns the value of thesourceVariablerecord component.- Returns:
- the value of the
sourceVariablerecord component
-
debugInfo
-