public static methodTypeAt(typeName as String, methodIndex as Long, parameterIndex as Long) as Type
Resolves a registered method signature in its declaration scope. Receiver-dependent returns and declared generic parameters are metadata, not independent classes to load by name.
| Parameter | Description |
|---|---|
typeName | Registered declaring type. |
methodIndex | Index of the declared method. |
parameterIndex | Parameter index, or -1 for its return type. |
Signature type metadata, including scoped generic type variables.
import klyn.reflection
resultType = TypeLoader.methodTypeAt("klyn.Object", 0l, -1l)
print(resultType.fullName)