Builder

Functions

Link copied to clipboard
abstract fun addFunction(funSpec: FunSpec): T
Link copied to clipboard
open fun addFunctions(funSpecs: Iterable<FunSpec>): T
Link copied to clipboard
open fun addProperties(propertySpecs: Iterable<PropertySpec>): T
Link copied to clipboard
abstract fun addProperty(propertySpec: PropertySpec): T
@DelicateKotlinPoetApi(message = "Java reflection APIs don't give complete information on Kotlin types. Consider using the kotlinpoet-metadata APIs instead.")
open fun addProperty(name: String, type: <Error class: unknown class>, vararg modifiers: KModifier): T
@DelicateKotlinPoetApi(message = "Java reflection APIs don't give complete information on Kotlin types. Consider using the kotlinpoet-metadata APIs instead.")
open fun addProperty(name: String, type: <Error class: unknown class>, modifiers: Iterable<KModifier>): T
open fun addProperty(name: String, type: TypeName, vararg modifiers: KModifier): T
open fun addProperty(name: String, type: TypeName, modifiers: Iterable<KModifier>): T
open fun addProperty(name: String, type: KClass<*>, vararg modifiers: KModifier): T
open fun addProperty(name: String, type: KClass<*>, modifiers: Iterable<KModifier>): T