Record Class GuardedAssignmentDetails
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase7.support.GuardedAssignmentDetails
public record GuardedAssignmentDetails(ISymbol lhsSymbol, EK9Parser.AssignmentExpressionContext assignmentExpression, org.antlr.v4.runtime.Token operatorToken)
extends Record
Data class to hold parameters for guarded assignment generation.
STACK-BASED: Scope information is now managed via stack context.
-
Constructor Summary
ConstructorsConstructorDescriptionGuardedAssignmentDetails(ISymbol lhsSymbol, EK9Parser.AssignmentExpressionContext assignmentExpression, org.antlr.v4.runtime.Token operatorToken) Creates an instance of aGuardedAssignmentDetailsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassignmentExpressionrecord 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 thelhsSymbolrecord component.org.antlr.v4.runtime.TokenReturns the value of theoperatorTokenrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GuardedAssignmentDetails
public GuardedAssignmentDetails(ISymbol lhsSymbol, EK9Parser.AssignmentExpressionContext assignmentExpression, org.antlr.v4.runtime.Token operatorToken) Creates an instance of aGuardedAssignmentDetailsrecord class.- Parameters:
lhsSymbol- the value for thelhsSymbolrecord componentassignmentExpression- the value for theassignmentExpressionrecord componentoperatorToken- the value for theoperatorTokenrecord 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 thelhsSymbolrecord component.- Returns:
- the value of the
lhsSymbolrecord component
-
assignmentExpression
Returns the value of theassignmentExpressionrecord component.- Returns:
- the value of the
assignmentExpressionrecord component
-
operatorToken
public org.antlr.v4.runtime.Token operatorToken()Returns the value of theoperatorTokenrecord component.- Returns:
- the value of the
operatorTokenrecord component
-