Record Class AssignmentData
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase3.AssignmentData
Used to decouple checks from the grammar contexts.
-
Constructor Summary
ConstructorsConstructorDescriptionAssignmentData(boolean isAssigningToThis, TypeCompatibilityData typeData) Creates an instance of aAssignmentDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisAssigningToThisrecord component.final StringtoString()Returns a string representation of this record class.typeData()Returns the value of thetypeDatarecord component.
-
Constructor Details
-
AssignmentData
AssignmentData(boolean isAssigningToThis, TypeCompatibilityData typeData) Creates an instance of aAssignmentDatarecord class.- Parameters:
isAssigningToThis- the value for theisAssigningToThisrecord componenttypeData- the value for thetypeDatarecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
isAssigningToThis
public boolean isAssigningToThis()Returns the value of theisAssigningToThisrecord component.- Returns:
- the value of the
isAssigningToThisrecord component
-
typeData
Returns the value of thetypeDatarecord component.- Returns:
- the value of the
typeDatarecord component
-