Properties

Link copied to clipboard
Link copied to clipboard

Mutable map of the current originating elements this builder contains.

Link copied to clipboard
open override val kdoc: CodeBlock.Builder
Link copied to clipboard
Link copied to clipboard

Mutable map of the current originating elements this builder contains.

Link copied to clipboard
open override val tags: MutableMap<KClass<*>, Any>

Mutable map of the current tags this builder contains.

Link copied to clipboard

Functions

Link copied to clipboard
open override fun addAnnotation(annotationSpec: AnnotationSpec): PropertySpec.Builder
open override fun addAnnotation(annotation: ClassName): PropertySpec.Builder
@DelicateKotlinPoetApi(message = "Java reflection APIs don't give complete information on Kotlin types. Consider using the kotlinpoet-metadata APIs instead.")
open override fun addAnnotation(annotation: Class<*>): PropertySpec.Builder
open override fun addAnnotation(annotation: KClass<*>): PropertySpec.Builder
Link copied to clipboard
open override fun addAnnotations(annotationSpecs: Iterable<AnnotationSpec>): PropertySpec.Builder
Link copied to clipboard
open override fun addKdoc(block: CodeBlock): PropertySpec.Builder
open override fun addKdoc(format: String, vararg args: Any): PropertySpec.Builder
Link copied to clipboard
Link copied to clipboard
open fun addOriginatingElement(originatingElement: Element): PropertySpec.Builder

Adds an originatingElement to this type's list of originating elements.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun contextReceivers(vararg receiverTypes: TypeName): PropertySpec.Builder

Adds the given receiverTypes to this type's list of originating elements.

Link copied to clipboard
fun delegate(format: String, vararg args: Any?): PropertySpec.Builder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun mutable(mutable: Boolean = true): PropertySpec.Builder

True to create a var instead of a val.

Link copied to clipboard
@DelicateKotlinPoetApi(message = "Java reflection APIs don't give complete information on Kotlin types. Consider using the kotlinpoet-metadata APIs instead.")
fun receiver(receiverType: Type): PropertySpec.Builder
fun receiver(receiverType: KClass<*>): PropertySpec.Builder
Link copied to clipboard
Link copied to clipboard
open fun tag(type: Class<*>, tag: Any?): PropertySpec.Builder
open fun tag(type: KClass<*>, tag: Any?): PropertySpec.Builder

Attaches tag to the request using type as a key. Tags can be read from a request using Taggable.tag. Use null to remove any existing tag assigned for type.

Link copied to clipboard

Attaches tag to the request using T as a key. Tags can be read from a request using Taggable.tag. Use null to remove any existing tag assigned for T.

Link copied to clipboard
Link copied to clipboard