Record Class LiteralParams
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase7.support.LiteralParams
- Record Components:
tempName- Variable name to store the literalliteralValue- The literal value to loadliteralType- Type of the literaldebugInfo- Debug information for instructions
-
Constructor Summary
ConstructorsConstructorDescriptionLiteralParams(String tempName, String literalValue, ISymbol literalType, DebugInfo debugInfo) Creates an instance of aLiteralParamsrecord 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 theliteralTyperecord component.Returns the value of theliteralValuerecord component.tempName()Returns the value of thetempNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LiteralParams
public LiteralParams(String tempName, String literalValue, ISymbol literalType, DebugInfo debugInfo) Creates an instance of aLiteralParamsrecord class.- Parameters:
tempName- the value for thetempNamerecord componentliteralValue- the value for theliteralValuerecord componentliteralType- the value for theliteralTyperecord 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). -
tempName
-
literalValue
Returns the value of theliteralValuerecord component.- Returns:
- the value of the
literalValuerecord component
-
literalType
Returns the value of theliteralTyperecord component.- Returns:
- the value of the
literalTyperecord component
-
debugInfo
-