Class KotlinConstants


  • public class KotlinConstants
    extends java.lang.Object
    • Field Detail

      • METADATA_KIND_FILE_FACADE

        public static final int METADATA_KIND_FILE_FACADE
        See Also:
        Constant Field Values
      • METADATA_KIND_SYNTHETIC_CLASS

        public static final int METADATA_KIND_SYNTHETIC_CLASS
        See Also:
        Constant Field Values
      • METADATA_KIND_MULTI_FILE_CLASS_FACADE

        public static final int METADATA_KIND_MULTI_FILE_CLASS_FACADE
        See Also:
        Constant Field Values
      • METADATA_KIND_MULTI_FILE_CLASS_PART

        public static final int METADATA_KIND_MULTI_FILE_CLASS_PART
        See Also:
        Constant Field Values
      • FUNCTION_NAME_MANGLE_SEPARATOR

        public static final char FUNCTION_NAME_MANGLE_SEPARATOR
        See Also:
        Constant Field Values
      • FUNCTION_NAME_ANONYMOUS

        public static final java.lang.String FUNCTION_NAME_ANONYMOUS
        See Also:
        Constant Field Values
      • METHOD_NAME_LAMBDA_INVOKE

        public static final java.lang.String METHOD_NAME_LAMBDA_INVOKE
        See Also:
        Constant Field Values
      • NAME_KOTLIN_METADATA

        public static final java.lang.String NAME_KOTLIN_METADATA
        See Also:
        Constant Field Values
      • TYPE_KOTLIN_METADATA

        public static final java.lang.String TYPE_KOTLIN_METADATA
        See Also:
        Constant Field Values
      • NAME_KOTLIN_UNIT

        public static final java.lang.String NAME_KOTLIN_UNIT
        See Also:
        Constant Field Values
      • TYPE_KOTLIN_UNIT

        public static final java.lang.String TYPE_KOTLIN_UNIT
        See Also:
        Constant Field Values
      • NAME_KOTLIN_ENUM

        public static final java.lang.String NAME_KOTLIN_ENUM
        See Also:
        Constant Field Values
      • NAME_KOTLIN_FUNCTION

        public static final java.lang.String NAME_KOTLIN_FUNCTION
        See Also:
        Constant Field Values
      • NAME_KOTLIN_EXTENSION_FUNCTION

        public static final java.lang.String NAME_KOTLIN_EXTENSION_FUNCTION
        See Also:
        Constant Field Values
      • NAME_KOTLIN_PARAMETER_NAME

        public static final java.lang.String NAME_KOTLIN_PARAMETER_NAME
        See Also:
        Constant Field Values
      • NAME_KOTLIN_COROUTINES_DEBUG_METADATA

        public static final java.lang.String NAME_KOTLIN_COROUTINES_DEBUG_METADATA
        See Also:
        Constant Field Values
      • TYPE_KOTLIN_JVM_JVMNAME

        public static final java.lang.String TYPE_KOTLIN_JVM_JVMNAME
        See Also:
        Constant Field Values
      • TYPE_KOTLIN_DEFAULT_CONSTRUCTOR_MARKER

        public static final java.lang.String TYPE_KOTLIN_DEFAULT_CONSTRUCTOR_MARKER
        See Also:
        Constant Field Values
      • DEFAULT_METHOD_SUFFIX

        public static final java.lang.String DEFAULT_METHOD_SUFFIX
        See Also:
        Constant Field Values
      • DEFAULT_IMPLEMENTATIONS_SUFFIX

        public static final java.lang.String DEFAULT_IMPLEMENTATIONS_SUFFIX
        See Also:
        Constant Field Values
      • WHEN_MAPPINGS_SUFFIX

        public static final java.lang.String WHEN_MAPPINGS_SUFFIX
        See Also:
        Constant Field Values
      • KOTLIN_OBJECT_INSTANCE_FIELD_NAME

        public static final java.lang.String KOTLIN_OBJECT_INSTANCE_FIELD_NAME
        See Also:
        Constant Field Values
      • KOTLIN_INTRINSICS_CLASS

        public static final java.lang.String KOTLIN_INTRINSICS_CLASS
        See Also:
        Constant Field Values
      • KOTLIN_METADATA_FIELD_K

        public static final java.lang.String KOTLIN_METADATA_FIELD_K
        See Also:
        Constant Field Values
      • KOTLIN_METADATA_FIELD_BV

        public static final java.lang.String KOTLIN_METADATA_FIELD_BV
        See Also:
        Constant Field Values
      • KOTLIN_METADATA_FIELD_MV

        public static final java.lang.String KOTLIN_METADATA_FIELD_MV
        See Also:
        Constant Field Values
      • KOTLIN_METADATA_FIELD_D1

        public static final java.lang.String KOTLIN_METADATA_FIELD_D1
        See Also:
        Constant Field Values
      • KOTLIN_METADATA_FIELD_D2

        public static final java.lang.String KOTLIN_METADATA_FIELD_D2
        See Also:
        Constant Field Values
      • KOTLIN_METADATA_FIELD_XI

        public static final java.lang.String KOTLIN_METADATA_FIELD_XI
        See Also:
        Constant Field Values
      • KOLTIN_METADATA_FIELD_XS

        public static final java.lang.String KOLTIN_METADATA_FIELD_XS
        See Also:
        Constant Field Values
      • KOTLIN_METADATA_FIELD_PN

        public static final java.lang.String KOTLIN_METADATA_FIELD_PN
        See Also:
        Constant Field Values
      • dummyClassPool

        public static final ClassPool dummyClassPool
    • Constructor Detail

      • KotlinConstants

        public KotlinConstants()
    • Method Detail

      • metadataKindToString

        public static java.lang.String metadataKindToString​(int kind)
      • getKotlinType

        public static Clazz getKotlinType​(Clazz javaType)
        Get the Kotlin equivalent of a Java type.
        Parameters:
        javaType - the class of the Java type.
        Returns:
        Kotlin type class or the original Java type class if it doesn't have a Kotlin equivalent