ClassAccessorDecoratorContext

interface ClassAccessorDecoratorContext<This : JsAny, Value : JsAny>(source)

Context provided to a class accessor field decorator.

Types

Link copied to clipboard
interface Access<This : JsAny, Value : JsAny>

Properties

Link copied to clipboard

An object that can be used to access the current value of the class element at runtime.

Link copied to clipboard
abstract external val kind: DecoratorContextKind.accessor

The kind of class element that was decorated.

Link copied to clipboard
abstract external val metadata: DecoratorMetadata
Link copied to clipboard
abstract external val name: PropertyKey

The name of the decorated class element.

Link copied to clipboard
abstract external val private: Boolean

A value indicating whether the class element has a private name.

Link copied to clipboard
abstract external val static: Boolean

A value indicating whether the class element is a static (true) or instance (false) element.

Functions

Link copied to clipboard
abstract external fun addInitializer(initializer: () -> Unit)

Adds a callback to be invoked immediately after the auto accessor being decorated is initialized (regardless if the accessor is static or not).