Record Class CleanRuntimeRoutes.Route
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase9.CleanRuntimeRoutes.Route
- Enclosing class:
CleanRuntimeRoutes
static record CleanRuntimeRoutes.Route(String calleeTypeName, String methodName, List<String> parameterTypes, int argumentIndex)
extends Record
One reviewed route: the callee type, the method, its parameter types, and which argument (zero based, as
CallInstr.getArguments()) carries the function value the routine calls back.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theargumentIndexrecord component.Returns the value of thecalleeTypeNamerecord 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 themethodNamerecord component.Returns the value of theparameterTypesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Route
Creates an instance of aRouterecord class.- Parameters:
calleeTypeName- the value for thecalleeTypeNamerecord componentmethodName- the value for themethodNamerecord componentparameterTypes- the value for theparameterTypesrecord componentargumentIndex- the value for theargumentIndexrecord 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. -
calleeTypeName
Returns the value of thecalleeTypeNamerecord component.- Returns:
- the value of the
calleeTypeNamerecord component
-
methodName
Returns the value of themethodNamerecord component.- Returns:
- the value of the
methodNamerecord component
-
parameterTypes
-
argumentIndex
public int argumentIndex()Returns the value of theargumentIndexrecord component.- Returns:
- the value of the
argumentIndexrecord component
-