Builder

The builder analogue to ContextParameterizable types.

Inheritors

Properties

Link copied to clipboard

Mutable list of the current context parameters this builder contains.

Functions

Link copied to clipboard
open fun contextParameter(contextParameter: ContextParameter): T

Adds the given ContextParameter to this type's list of context parameters.

open fun contextParameter(type: TypeName): T

Adds a context parameter with the name "_" and type to this type's list of context parameters.

open fun contextParameter(name: String, type: TypeName): T
@DelicateKotlinPoetApi(message = "Java reflection APIs don't give complete information on Kotlin types. Consider using the kotlinpoet-metadata APIs instead.")
open fun contextParameter(name: String, type: Type): T
open fun contextParameter(name: String, type: KClass<*>): T

Adds a context parameter with the given name and type to this type's list of context parameters.

Link copied to clipboard

Adds the given parameters to this type's list of context parameters.