ConverterBuilderFunctionBuilder

class ConverterBuilderFunctionBuilder : KoinComponent

Builder class that itself builds converter builder functions. Not quite as meta as the other one.

This is a fairly messy class containing a string builder, but what can you do?

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
lateinit var argumentType: String

Argument type, the type the user should ultimately be given after parsing.

Link copied to clipboard

Builder class generic arguments. Omit the <>.

Link copied to clipboard
lateinit var builderType: String

Builder class type, used as a receiver.

Link copied to clipboard

Comment to prepend to the function definition.

Link copied to clipboard
lateinit var converterType: String

Basic converter type, returned by the function.

Link copied to clipboard

Builder function generic arguments. Omit the <>.

Link copied to clipboard
lateinit var name: String

Argument function name, "Arguments.$name".

Link copied to clipboard

Extra generic bounds to place after where in the function signature.

Functions

Link copied to clipboard
fun build(): String

Build the string that contains this builder's code.

Link copied to clipboard

Add a builder constructor argument. name = value only, please.

Link copied to clipboard
open fun getKoin(): Koin