パッケージ org.springframework.core
クラス KotlinDetector
java.lang.ObjectSE
org.springframework.core.KotlinDetector
Kotlin の存在を検出し、Kotlin 型を識別するための共通デリゲート。
- 導入:
- 5.0
- 作成者:
- Juergen Hoeller, Sebastien Deleuze
コンストラクターのサマリー
メソッドのサマリー
修飾子と型メソッド説明static boolean
Kotlin が一般的に存在するかどうかを確認します。static boolean
Kotlin 反射が存在するかどうかを確認します。static boolean
isKotlinType
(ClassSE<?> clazz) 指定されたClass
が Kotlin 型(Kotlin メタデータが存在する)かどうかを判別します。static boolean
isSuspendingFunction
(MethodSE method) メソッドがサスペンド関数の場合は、true
を返します。
コンストラクターの詳細
KotlinDetector
public KotlinDetector()
メソッドの詳細
isKotlinPresent
public static boolean isKotlinPresent()Kotlin が一般的に存在するかどうかを確認します。isKotlinReflectPresent
public static boolean isKotlinReflectPresent()Kotlin 反射が存在するかどうかを確認します。- 導入:
- 5.1
isKotlinType
指定されたClass
が Kotlin 型(Kotlin メタデータが存在する)かどうかを判別します。isSuspendingFunction
メソッドがサスペンド関数の場合は、true
を返します。- 導入:
- 5.3