Record Class AggregateMethodData
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase3.AggregateMethodData
record AggregateMethodData(IToken location, IAggregateSymbol aggregate, MethodSymbol methodSymbol)
extends Record
Data structure to facilitate checks on methods on an aggregate.
-
Constructor Summary
ConstructorsConstructorDescriptionAggregateMethodData
(IToken location, IAggregateSymbol aggregate, MethodSymbol methodSymbol) Creates an instance of aAggregateMethodData
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaggregate
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.location()
Returns the value of thelocation
record component.Returns the value of themethodSymbol
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
AggregateMethodData
AggregateMethodData(IToken location, IAggregateSymbol aggregate, MethodSymbol methodSymbol) Creates an instance of aAggregateMethodData
record class.- Parameters:
location
- the value for thelocation
record componentaggregate
- the value for theaggregate
record componentmethodSymbol
- the value for themethodSymbol
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)
. -
location
Returns the value of thelocation
record component.- Returns:
- the value of the
location
record component
-
aggregate
Returns the value of theaggregate
record component.- Returns:
- the value of the
aggregate
record component
-
methodSymbol
Returns the value of themethodSymbol
record component.- Returns:
- the value of the
methodSymbol
record component
-