FileFacade

class FileFacade(var kmPackage: KmPackage, var version: JvmMetadataVersion, var flags: Int) : KotlinClassMetadata

Represents metadata of a class file containing a compiled Kotlin file facade.

File facade is a JVM class that contains declarations which do not belong to any Kotlin class: top-level functions, properties, and type aliases. For example, file Main.kt that contains only fun main() would produce a MainKt.class with FileFacade with this function metadata. If Kotlin source file contains both classes and top-level declarations, only top-level declarations would be available in the corresponding file facade. Classes would have their own JVM classfiles and their own metadata of Class kind.

Constructors

Link copied to clipboard
constructor(kmPackage: KmPackage, version: JvmMetadataVersion, flags: Int)

Properties

Link copied to clipboard
open override var flags: Int

Additional classfile-level flags of this metadata. See Metadata.extraInt for possible values.

Link copied to clipboard

KmPackage representation of this metadata.

Link copied to clipboard
open override var version: JvmMetadataVersion

Version of this metadata.

Functions

Link copied to clipboard
open override fun write(): Metadata

Encodes and writes this metadata to the new instance of Metadata.