SyntheticClass

class SyntheticClass(var kmLambda: KmLambda?, var version: JvmMetadataVersion, var flags: Int) : KotlinClassMetadata

Represents metadata of a class file containing a synthetic class, e.g., a class for lambda, $DefaultImpls class for interface method implementations, $WhenMappings class for optimized when over enums, etc.

Constructors

Link copied to clipboard
constructor(kmLambda: KmLambda?, 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

Returns true if this synthetic class is a class file compiled for a Kotlin lambda.

Link copied to clipboard

KmLambda representation of this metadata, or null if this synthetic class does not represent a lambda.

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.