Package org.springframework.core
Class KotlinDetector
java.lang.Object
org.springframework.core.KotlinDetector
A common delegate for detecting Kotlin's presence and for identifying Kotlin types.
- Since:
- 5.0
- Author:
- Juergen Hoeller, Sebastien Deleuze
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Determine whether Kotlin is present in general.static boolean
Determine whether Kotlin reflection is present.static boolean
isKotlinType
(Class<?> clazz) Determine whether the givenClass
is a Kotlin type (with Kotlin metadata present on it).static boolean
isSuspendingFunction
(Method method) Returntrue
if the method is a suspending function.
-
Constructor Details
-
KotlinDetector
public KotlinDetector()
-
-
Method Details
-
isKotlinPresent
public static boolean isKotlinPresent()Determine whether Kotlin is present in general. -
isKotlinReflectPresent
public static boolean isKotlinReflectPresent()Determine whether Kotlin reflection is present.- Since:
- 5.1
-
isKotlinType
Determine whether the givenClass
is a Kotlin type (with Kotlin metadata present on it). -
isSuspendingFunction
Returntrue
if the method is a suspending function.- Since:
- 5.3
-