Companion
Collection of methods for reading and writing KotlinClassMetadata, as well as metadata kind constants and COMPATIBLE_METADATA_VERSION constant.
Properties
A class file kind signifying that the corresponding class file contains a declaration of a Kotlin class.
The latest stable metadata version supported by this version of the library. The library can read Kotlin metadata produced by Kotlin compilers from 1.0 up to and including this version + 1 minor.
A class file kind signifying that the corresponding class file is a compiled Kotlin file facade.
A class file kind signifying that the corresponding class file is a compiled multi-file class facade.
A class file kind signifying that the corresponding class file is a compiled multi-file class part, i.e. an internal class with method bodies and their metadata, accessed only from the corresponding facade.
A class file kind signifying that the corresponding class file is synthetic, e.g. it is a class for lambda, $DefaultImpls
class for interface method implementations, $WhenMappings
class for optimized when
over enums, etc.
Functions
Reads and parses the given annotation data of a Kotlin JVM class file and returns the correct type of KotlinClassMetadata encoded by this annotation, if metadata version is supported.
Writes synthetic class metadata.