Class KotlinDetector

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

public abstract class KotlinDetector extends Object
Detects Kotlin classes and static method-reference adapters without a Kotlin dependency.
  • 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).
    • isKotlinStaticAdapter

      public static boolean isKotlinStaticAdapter(Object func)
      Determine whether the given lambda is a Kotlin static method-reference adapter.
    • getKotlinStaticAdapterTarget

      public static Object getKotlinStaticAdapterTarget(SerializedLambda lambda, ClassLoader classLoader)
      Returns the target of a Kotlin static method-reference adapter, if the lambda has one.