Kotlin Module Metadata
Represents the parsed metadata of a Kotlin JVM module file.
To create an instance of KotlinModuleMetadata, load the contents of the .kotlin_module
file into a byte array and call KotlinModuleMetadata.read. Then it is possible to get the result in the form of KmModule with KotlinModuleMetadata.kmModule.
.kotlin_module
file is produced per Kotlin compilation, and contains auxiliary information, such as a map of all single- and multi-file facades (KmModule.packageParts), and @OptionalExpectation
declarations (KmModule.optionalAnnotationClasses).
Types
Link copied to clipboard
object Companion
Collection of methods for reading and writing KotlinModuleMetadata.