Class

class Class(var kmClass: KmClass, var version: JvmMetadataVersion, var flags: Int) : KotlinClassMetadata

Represents metadata of a class file containing a declaration of a Kotlin class.

Anything that does not belong to a Kotlin class (top-level declarations) is not present in Class metadata, even if such declaration was in the same source file. See FileFacade for details.

Constructors

Link copied to clipboard
constructor(kmClass: KmClass, 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

KmClass 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.