DSLMutator

abstract class DSLMutator<T : CachingBuilder<*>>

Allows easy creation of a DSL for a class.

Parameters

T

The class to create a DSL for.

Functions

Link copied to clipboard
fun asNew(): T

Reflectively creates a new instance of T and mutates it with the DSLMutator.

Link copied to clipboard
abstract fun T.mutate()
Link copied to clipboard
fun mutateOrNew(target: T?): T
Link copied to clipboard
fun on(target: T): T

Mutates this existing instance with the DSLMutator.