ClassFieldDecoratorContext

sealed external interface ClassFieldDecoratorContext<This : Any, Value : Any>(source)

Context provided to a class field decorator.

Types

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

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

The kind of class element that was decorated.

Link copied to clipboard
Link copied to clipboard
abstract val name: PropertyKey

The name of the decorated class element.

Link copied to clipboard
abstract val private: Boolean

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

Link copied to clipboard
abstract val static: Boolean

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

Functions

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

Adds a callback to be invoked either before static initializers are run (when decorating a static element), or before instance initializers are run (when decorating a non-static element).