Class KotlinDetector

java.lang.Object
io.temporal.internal.common.kotlin.KotlinDetector

public abstract class KotlinDetector extends Object
This class allows checking if the class is Kotlin class without using any Kotlin dependencies
  • Constructor Details

    • KotlinDetector

      public KotlinDetector()
  • Method Details

    • isPresent

      public static boolean isPresent(String className, ClassLoader classLoader)
    • isKotlinPresent

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

      public static boolean isKotlinReflectPresent()
      Determine whether Kotlin reflection is present.
    • isKotlinType

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