Record Class GuardedAssignmentGenerator.GuardedAssignmentDetails
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase7.GuardedAssignmentGenerator.GuardedAssignmentDetails
- Enclosing class:
GuardedAssignmentGenerator
public static record GuardedAssignmentGenerator.GuardedAssignmentDetails(ISymbol lhsSymbol, EK9Parser.AssignmentExpressionContext assignmentExpression, String scopeId)
extends Record
Data class to hold parameters for guarded assignment generation.
-
Constructor Summary
ConstructorsConstructorDescriptionGuardedAssignmentDetails
(ISymbol lhsSymbol, EK9Parser.AssignmentExpressionContext assignmentExpression, String scopeId) Creates an instance of aGuardedAssignmentDetails
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassignmentExpression
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thelhsSymbol
record component.scopeId()
Returns the value of thescopeId
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
GuardedAssignmentDetails
public GuardedAssignmentDetails(ISymbol lhsSymbol, EK9Parser.AssignmentExpressionContext assignmentExpression, String scopeId) Creates an instance of aGuardedAssignmentDetails
record class.- Parameters:
lhsSymbol
- the value for thelhsSymbol
record componentassignmentExpression
- the value for theassignmentExpression
record componentscopeId
- the value for thescopeId
record 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)
. -
lhsSymbol
Returns the value of thelhsSymbol
record component.- Returns:
- the value of the
lhsSymbol
record component
-
assignmentExpression
Returns the value of theassignmentExpression
record component.- Returns:
- the value of the
assignmentExpression
record component
-
scopeId
Returns the value of thescopeId
record component.- Returns:
- the value of the
scopeId
record component
-