ClassGetterDecoratorContext

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

Context provided to a class getter 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.getter

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 either after static methods are defined but before static initializers are run (when decorating a static element), or before instance initializers are run (when decorating a non-static element).