Record Class CallDetails
java.lang.Object
java.lang.Record
org.ek9lang.compiler.ir.data.CallDetails
public record CallDetails(String targetObject, String targetTypeName, String methodName, List<String> parameterTypes, String returnTypeName, List<String> arguments, CallMetaDataDetails metaData, boolean isTraitCall)
extends Record
Used with CallInstr, holds all the necessary details to make a call.
Includes metadata for backend optimization.
-
Constructor Summary
ConstructorsConstructorDescriptionCallDetails
(String targetObject, String targetTypeName, String methodName, List<String> parameterTypes, String returnTypeName, List<String> arguments, CallMetaDataDetails metaData, boolean isTraitCall) Creates an instance of aCallDetails
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thearguments
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.boolean
Returns the value of theisTraitCall
record component.metaData()
Returns the value of themetaData
record component.Returns the value of themethodName
record component.Returns the value of theparameterTypes
record component.Returns the value of thereturnTypeName
record component.Returns the value of thetargetObject
record component.Returns the value of thetargetTypeName
record component.toString()
Returns a string representation of this record class.
-
Constructor Details
-
CallDetails
public CallDetails(String targetObject, String targetTypeName, String methodName, List<String> parameterTypes, String returnTypeName, List<String> arguments, CallMetaDataDetails metaData, boolean isTraitCall) Creates an instance of aCallDetails
record class.- Parameters:
targetObject
- the value for thetargetObject
record componenttargetTypeName
- the value for thetargetTypeName
record componentmethodName
- the value for themethodName
record componentparameterTypes
- the value for theparameterTypes
record componentreturnTypeName
- the value for thereturnTypeName
record componentarguments
- the value for thearguments
record componentmetaData
- the value for themetaData
record componentisTraitCall
- the value for theisTraitCall
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with thecompare
method from their corresponding wrapper classes. -
targetObject
Returns the value of thetargetObject
record component.- Returns:
- the value of the
targetObject
record component
-
targetTypeName
Returns the value of thetargetTypeName
record component.- Returns:
- the value of the
targetTypeName
record component
-
methodName
Returns the value of themethodName
record component.- Returns:
- the value of the
methodName
record component
-
parameterTypes
-
returnTypeName
Returns the value of thereturnTypeName
record component.- Returns:
- the value of the
returnTypeName
record component
-
arguments
-
metaData
Returns the value of themetaData
record component.- Returns:
- the value of the
metaData
record component
-
isTraitCall
public boolean isTraitCall()Returns the value of theisTraitCall
record component.- Returns:
- the value of the
isTraitCall
record component
-