Record Class DirectionCheckParams
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase7.support.DirectionCheckParams
- Record Components:
directionTemp- Variable holding the direction value (from start <=> end)comparisonOperator- Comparison operator ("<" for ascending, ">" for descending)zeroTemp- Temporary variable for literal 0booleanObjectTemp- Temporary variable for EK9 Boolean comparison resultprimitiveBooleanTemp- Temporary variable for primitive boolean resultintegerType- EK9 Integer type symbolbooleanType- EK9 Boolean type symbolscopeId- Scope ID for memory managementdebugInfo- Debug information for instructions
public record DirectionCheckParams(String directionTemp, String comparisonOperator, String zeroTemp, String booleanObjectTemp, String primitiveBooleanTemp, ISymbol integerType, ISymbol booleanType, String scopeId, DebugInfo debugInfo)
extends Record
Parameters for direction check evaluation.
Encapsulates all data needed to build direction check IR for polymorphic for-range loops (direction < 0 or direction > 0).
-
Constructor Summary
ConstructorsConstructorDescriptionDirectionCheckParams(String directionTemp, String comparisonOperator, String zeroTemp, String booleanObjectTemp, String primitiveBooleanTemp, ISymbol integerType, ISymbol booleanType, String scopeId, DebugInfo debugInfo) Creates an instance of aDirectionCheckParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebooleanObjectTemprecord component.Returns the value of thebooleanTyperecord component.Returns the value of thecomparisonOperatorrecord component.Returns the value of thedebugInforecord component.Returns the value of thedirectionTemprecord 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 theintegerTyperecord component.Returns the value of theprimitiveBooleanTemprecord component.scopeId()Returns the value of thescopeIdrecord component.final StringtoString()Returns a string representation of this record class.zeroTemp()Returns the value of thezeroTemprecord component.
-
Constructor Details
-
DirectionCheckParams
public DirectionCheckParams(String directionTemp, String comparisonOperator, String zeroTemp, String booleanObjectTemp, String primitiveBooleanTemp, ISymbol integerType, ISymbol booleanType, String scopeId, DebugInfo debugInfo) Creates an instance of aDirectionCheckParamsrecord class.- Parameters:
directionTemp- the value for thedirectionTemprecord componentcomparisonOperator- the value for thecomparisonOperatorrecord componentzeroTemp- the value for thezeroTemprecord componentbooleanObjectTemp- the value for thebooleanObjectTemprecord componentprimitiveBooleanTemp- the value for theprimitiveBooleanTemprecord componentintegerType- the value for theintegerTyperecord componentbooleanType- the value for thebooleanTyperecord 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). -
directionTemp
Returns the value of thedirectionTemprecord component.- Returns:
- the value of the
directionTemprecord component
-
comparisonOperator
Returns the value of thecomparisonOperatorrecord component.- Returns:
- the value of the
comparisonOperatorrecord component
-
zeroTemp
-
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
-
integerType
Returns the value of theintegerTyperecord component.- Returns:
- the value of the
integerTyperecord component
-
booleanType
Returns the value of thebooleanTyperecord component.- Returns:
- the value of the
booleanTyperecord component
-
scopeId
-
debugInfo
-