ModuleDefinition

@Serializable
data class ModuleDefinition(val type: String, val kind: Int, val name: String? = null, val required: Boolean? = false, val comment: String? = null, val methods: List<MethodDefinition>? = null, val imports: List<ModuleDefinition.ImportedModuleRef>? = null, val interfaces: List<GenericDefinition>? = null) : IGenericDefinition, WithComment

A serializable class representing a module definition in a Wrap ABI.

Constructors

Link copied to clipboard
constructor(type: String, kind: Int, name: String? = null, required: Boolean? = false, comment: String? = null, methods: List<MethodDefinition>? = null, imports: List<ModuleDefinition.ImportedModuleRef>? = null, interfaces: List<GenericDefinition>? = null)

Types

Link copied to clipboard
@Serializable
data class ImportedModuleRef(val type: String? = null)

A sealed interface representing an imported module reference in a Wrap ABI.

Properties

Link copied to clipboard
open override val comment: String? = null

An optional comment for the module definition.

Link copied to clipboard

A list of ImportedModuleRef objects representing imported modules in the module.

Link copied to clipboard

A list of GenericDefinition objects representing the interfaces implemented by the module.

Link copied to clipboard
open override val kind: Int

The kind of the definition.

Link copied to clipboard

A list of MethodDefinition objects representing the methods defined in the module.

Link copied to clipboard
open override val name: String? = null

The name of the module definition.

Link copied to clipboard
open override val required: Boolean? = false

A boolean indicating whether the module definition is required or not.

Link copied to clipboard
open override val type: String

The type of the module definition.