Record Class IncrementParams
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase7.support.IncrementParams
- Record Components:
counterVar- Variable name holding the current counter valueoperator- Increment operator ("++") or decrement operator ("--")counterType- Type of the counter variableincrementResultTemp- Temporary variable for increment/decrement resultscopeId- Scope ID for memory managementdebugInfo- Debug information for instructions
public record IncrementParams(String counterVar, String operator, ISymbol counterType, String incrementResultTemp, String scopeId, DebugInfo debugInfo)
extends Record
Parameters for increment/decrement evaluation.
Encapsulates all data needed to perform an increment or decrement operation and update the loop counter variable.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecounterTyperecord component.Returns the value of thecounterVarrecord 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 theincrementResultTemprecord component.operator()Returns the value of theoperatorrecord component.scopeId()Returns the value of thescopeIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IncrementParams
public IncrementParams(String counterVar, String operator, ISymbol counterType, String incrementResultTemp, String scopeId, DebugInfo debugInfo) Creates an instance of aIncrementParamsrecord class.- Parameters:
counterVar- the value for thecounterVarrecord componentoperator- the value for theoperatorrecord componentcounterType- the value for thecounterTyperecord componentincrementResultTemp- the value for theincrementResultTemprecord 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). -
counterVar
Returns the value of thecounterVarrecord component.- Returns:
- the value of the
counterVarrecord component
-
operator
-
counterType
Returns the value of thecounterTyperecord component.- Returns:
- the value of the
counterTyperecord component
-
incrementResultTemp
Returns the value of theincrementResultTemprecord component.- Returns:
- the value of the
incrementResultTemprecord component
-
scopeId
-
debugInfo
-