public final class KotlinReflectionUtils extends ObjectSE
KotlinDetector.isKotlinReflectPresent()
修飾子と型 | メソッドと説明 |
---|---|
static kotlin.reflect.KFunction<?> | findKotlinFunction(MethodSE method) |
static ClassSE<?> | getReturnType(MethodSE method) Kotlin Method SE の return type SE を返します。 |
static boolean | isDataClass(ClassSE<?> type) 指定されたクラスが Kotlin データクラスの場合は true を返します。 |
static boolean | isSupportedKotlinClass(ClassSE<?> type) 指定されたクラスがサポートされている Kotlin クラスの場合、true を返します。 |
static boolean | isSuspend(MethodSE method) Method SE がサスペンドとして宣言されているかどうかを返します(Kotlin コルーチン)。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public static boolean isSupportedKotlinClass(ClassSE<?> type)
type
がサポートされている Kotlin クラスの場合は true。public static boolean isDataClass(ClassSE<?> type)
type
が Kotlin データクラスの場合は true。@Nullable public static kotlin.reflect.KFunction<?> findKotlinFunction(MethodSE method)
method
- 調べる方法。KFunction
または null
。public static boolean isSuspend(MethodSE method)
Method
SE がサスペンドとして宣言されているかどうかを返します(Kotlin コルーチン)。method
- インスペクションする方法。KFunction.isSuspend()
public static ClassSE<?> getReturnType(MethodSE method)
Method
SE の return type
SE を返します。通常のメソッドと一時停止されたメソッドをサポートします。method
- インスペクションする方法、通常は任意の合成 JVM Method
SE。Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.