Class KotlinReflectionUtils
java.lang.Object
org.junit.platform.commons.util.KotlinReflectionUtils
Internal Kotlin-specific reflection utilities
- Since:
- 1.13.3
-
Method Summary
Modifier and TypeMethodDescriptionstatic Typestatic Parameter[]static Class<?>[]static Class<?> static @Nullable ObjectinvokeKotlinFunction(Method method, @Nullable Object target, @Nullable Object... args) static @Nullable ObjectinvokeKotlinSuspendingFunction(Method method, @Nullable Object target, @Nullable Object[] args) static booleanisInstanceOfInlineType(@Nullable Object value) static booleanisKotlinInterfaceDefaultImplsClass(Class<?> clazz) Determines whether the supplied class is aDefaultImplsclass generated by the Kotlin compiler.static booleanstatic booleanisKotlinSuspendingFunction(Method method) static booleanisKotlinType(Class<?> clazz)
-
Method Details
-
isKotlinSuspendingFunction
- Since:
- 6.0
-
isKotlinInterfaceDefaultImplsClass
Determines whether the supplied class is aDefaultImplsclass generated by the Kotlin compiler.See Kotlin documentation for details.
-
isKotlinType
-
isKotlinReflectPresent
@API(status=INTERNAL, since="6.1") public static boolean isKotlinReflectPresent() -
getKotlinSuspendingFunctionReturnType
-
getKotlinSuspendingFunctionGenericReturnType
-
getKotlinSuspendingFunctionParameters
-
getKotlinSuspendingFunctionParameterTypes
-
invokeKotlinSuspendingFunction
-
isInstanceOfInlineType
@API(status=INTERNAL, since="6.1") public static boolean isInstanceOfInlineType(@Nullable Object value) -
invokeKotlinFunction
-