org.springframework.core

Class KotlinDetector

  • java.lang.Object
    • org.springframework.core.KotlinDetector


  • public abstract class KotlinDetector
    extends java.lang.Object
    A common delegate for detecting Kotlin's presence and for identifying Kotlin types.
    Since:
    5.0
    Author:
    Juergen Hoeller, Sebastien Deleuze
    • Constructor Summary

      Constructors 
      Constructor and Description
      KotlinDetector() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static boolean isKotlinPresent()
      Determine whether Kotlin is present in general.
      static boolean isKotlinReflectPresent()
      Determine whether Kotlin reflection is present.
      static boolean isKotlinType(java.lang.Class<?> clazz)
      Determine whether the given Class is a Kotlin type (with Kotlin metadata present on it).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • KotlinDetector

        public KotlinDetector()
    • Method Detail

      • 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

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