Class KotlinDetector
java.lang.Object
io.temporal.internal.common.kotlin.KotlinDetector
Detects Kotlin classes and static method-reference adapters without a Kotlin dependency.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectgetKotlinStaticAdapterTarget(SerializedLambda lambda, ClassLoader classLoader) Returns the target of a Kotlin static method-reference adapter, if the lambda has one.static booleanDetermine whether Kotlin is present in general.static booleanDetermine whether Kotlin reflection is present.static booleanisKotlinStaticAdapter(Object func) Determine whether the given lambda is a Kotlin static method-reference adapter.static booleanisKotlinType(Class<?> clazz) Determine whether the givenClassis a Kotlin type (with Kotlin metadata present on it).static booleanisPresent(String className, ClassLoader classLoader)
-
Constructor Details
-
KotlinDetector
public KotlinDetector()
-
-
Method Details
-
isPresent
-
isKotlinPresent
public static boolean isKotlinPresent()Determine whether Kotlin is present in general. -
isKotlinReflectPresent
public static boolean isKotlinReflectPresent()Determine whether Kotlin reflection is present. -
isKotlinType
Determine whether the givenClassis a Kotlin type (with Kotlin metadata present on it). -
isKotlinStaticAdapter
Determine whether the given lambda is a Kotlin static method-reference adapter. -
getKotlinStaticAdapterTarget
Returns the target of a Kotlin static method-reference adapter, if the lambda has one.
-