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 aAggregateMethodDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaggregaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.location()Returns the value of thelocationrecord component.Returns the value of themethodSymbolrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AggregateMethodData
AggregateMethodData(IToken location, IAggregateSymbol aggregate, MethodSymbol methodSymbol) Creates an instance of aAggregateMethodDatarecord class.- Parameters:
location- the value for thelocationrecord componentaggregate- the value for theaggregaterecord componentmethodSymbol- the value for themethodSymbolrecord 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 thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
aggregate
Returns the value of theaggregaterecord component.- Returns:
- the value of the
aggregaterecord component
-
methodSymbol
Returns the value of themethodSymbolrecord component.- Returns:
- the value of the
methodSymbolrecord component
-