类 KotlinDetector


  • public abstract class KotlinDetector
    extends Object
    A common delegate for detecting Kotlin's presence and for identifying Kotlin types.
    从以下版本开始:
    5.0
    作者:
    Juergen Hoeller, Sebastien Deleuze
    • 方法详细资料

      • isKotlinPresent

        public static boolean isKotlinPresent()
        Determine whether Kotlin is present in general.
      • isKotlinReflectPresent

        public static boolean isKotlinReflectPresent()
        Determine whether Kotlin reflection is present.
        从以下版本开始:
        5.1
      • isKotlinType

        public static boolean isKotlinType​(Class<?> clazz)
        Determine whether the given Class is a Kotlin type (with Kotlin metadata present on it).