java.lang.Object
nl.jqno.equalsverifier.internal.reflection.kotlin.KotlinProbe

public final class KotlinProbe extends Object
Collection of 'dangerous' reflection utilities for Kotlin. Can only be used when we know for sure that the `kotlin-reflect` library is available on the classpath.
  • Constructor Details

    • KotlinProbe

      private KotlinProbe()
  • Method Details

    • translateKotlinToBytecodeFieldNames

      public static List<String> translateKotlinToBytecodeFieldNames(Class<?> container, List<String> fieldNames)
    • translateKotlinToBytecodeFieldName

      public static String translateKotlinToBytecodeFieldName(Class<?> container, String fieldName)
    • getKotlinPropertyNameFor

      public static Optional<String> getKotlinPropertyNameFor(Field field)
    • determineLazyType

      public static Optional<TypeTag> determineLazyType(Class<?> container, Field field)
    • createTypeTag

      private static TypeTag createTypeTag(kotlin.reflect.KType kType)
    • determineClass

      private static Class<?> determineClass(kotlin.reflect.KType kType)
    • assertHasKotlinReflect

      private static void assertHasKotlinReflect(Field f)
    • isDeclaredInPrimaryConstructor

      public static boolean isDeclaredInPrimaryConstructor(Field field)
    • isDataClass

      public static <T> boolean isDataClass(Class<T> type)