Record Class ComparisonParams
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase7.support.ComparisonParams
- Record Components:
leftOperand- Variable name holding the left operandrightOperand- Variable name holding the right operandoperator- Comparison operator (e.g., "<", "<=", ">", ">=", "==")leftType- Type of left operandrightType- Type of right operandbooleanType- EK9 Boolean type symbolbooleanObjectTemp- Temporary variable for EK9 Boolean resultprimitiveBooleanTemp- Temporary variable for primitive boolean resultscopeId- Scope ID for memory managementdebugInfo- Debug information for instructions
public record ComparisonParams(String leftOperand, String rightOperand, String operator, ISymbol leftType, ISymbol rightType, ISymbol booleanType, String booleanObjectTemp, String primitiveBooleanTemp, String scopeId, DebugInfo debugInfo)
extends Record
Parameters for comparison evaluation.
Encapsulates all data needed to perform a comparison operation and extract the primitive boolean result.
-
Constructor Summary
ConstructorsConstructorDescriptionComparisonParams(String leftOperand, String rightOperand, String operator, ISymbol leftType, ISymbol rightType, ISymbol booleanType, String booleanObjectTemp, String primitiveBooleanTemp, String scopeId, DebugInfo debugInfo) Creates an instance of aComparisonParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebooleanObjectTemprecord component.Returns the value of thebooleanTyperecord component.Returns 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 theprimitiveBooleanTemprecord 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
-
ComparisonParams
public ComparisonParams(String leftOperand, String rightOperand, String operator, ISymbol leftType, ISymbol rightType, ISymbol booleanType, String booleanObjectTemp, String primitiveBooleanTemp, String scopeId, DebugInfo debugInfo) Creates an instance of aComparisonParamsrecord 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 componentbooleanType- the value for thebooleanTyperecord componentbooleanObjectTemp- the value for thebooleanObjectTemprecord componentprimitiveBooleanTemp- the value for theprimitiveBooleanTemprecord 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
-
booleanType
Returns the value of thebooleanTyperecord component.- Returns:
- the value of the
booleanTyperecord component
-
booleanObjectTemp
Returns the value of thebooleanObjectTemprecord component.- Returns:
- the value of the
booleanObjectTemprecord component
-
primitiveBooleanTemp
Returns the value of theprimitiveBooleanTemprecord component.- Returns:
- the value of the
primitiveBooleanTemprecord component
-
scopeId
-
debugInfo
-