public final class KotlinSingletons
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static @Nullable java.lang.Object |
findCompanion(java.lang.Class<?> type)
Attempts to find the companion singleton in the given class.
|
static @NotNull MethodCaller |
getCallerForNonDefault(@NotNull java.lang.reflect.Method method)
Generates a
MethodCaller for the given method, assuming that
it is not the synthetic default function generated by the
Kotlin compiler. |
@NotNull public static @NotNull MethodCaller getCallerForNonDefault(@NotNull @NotNull java.lang.reflect.Method method)
MethodCaller for the given method, assuming that
it is not the synthetic default function generated by the
Kotlin compiler.method - Method to generate for@Nullable public static @Nullable java.lang.Object findCompanion(java.lang.Class<?> type)
type - Type to search for. This should not be
the companion class.