MethodDefinition

@Serializable
data class MethodDefinition(val type: String, val kind: Int, val name: String? = null, val required: Boolean? = false, val comment: String? = null, val arguments: List<PropertyDefinition>? = null, val env: MethodDefinition.EnvRequired? = null, val _return: PropertyDefinition? = null) : IGenericDefinition, WithComment

A data class representing a method definition in a Wrap ABI.

Constructors

Link copied to clipboard
constructor(type: String, kind: Int, name: String? = null, required: Boolean? = false, comment: String? = null, arguments: List<PropertyDefinition>? = null, env: MethodDefinition.EnvRequired? = null, _return: PropertyDefinition? = null)

Types

Link copied to clipboard
@Serializable
data class EnvRequired(val required: Boolean? = null)

A data class representing whether an environment is required for a method in a Wrap ABI.

Properties

Link copied to clipboard

An optional PropertyDefinition object representing the return value of the method.

Link copied to clipboard

A list of PropertyDefinition objects representing the arguments of the method.

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

An optional comment associated with the method.

Link copied to clipboard

An optional EnvRequired object representing the environment required for the method.

Link copied to clipboard
open override val kind: Int

The kind of the method definition.

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

The name of the method.

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

A boolean indicating whether the method is required or not.

Link copied to clipboard
open override val type: String

The type of the method.