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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic booleanDetermine whether Kotlin is present in general.static booleanDetermine whether Kotlin reflection is present.static booleanisKotlinType(Class<?> clazz) Determine whether the givenClassis a Kotlin type (with Kotlin metadata present on it).static booleanisSuspendingFunction(Method method) Returntrueif the method is a suspending function.
- 
Constructor Details- 
KotlinDetectorpublic KotlinDetector()
 
- 
- 
Method Details- 
isKotlinPresentpublic static boolean isKotlinPresent()Determine whether Kotlin is present in general.
- 
isKotlinReflectPresentpublic static boolean isKotlinReflectPresent()Determine whether Kotlin reflection is present.- Since:
- 5.1
 
- 
isKotlinTypeDetermine whether the givenClassis a Kotlin type (with Kotlin metadata present on it).
- 
isSuspendingFunctionReturntrueif the method is a suspending function.- Since:
- 5.3
 
 
-