addInitializer

abstract fun addInitializer(initializer: () -> Unit)(source)

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).