Functions

addAnnotation
Link copied to clipboard
fun addAnnotation(annotationSpec: AnnotationSpec): PropertySpec.Builder
fun addAnnotation(annotation: ClassName): PropertySpec.Builder
fun addAnnotation(annotation: Class<*>): PropertySpec.Builder
fun addAnnotation(annotation: KClass<*>): PropertySpec.Builder
addAnnotations
Link copied to clipboard
fun addAnnotations(annotationSpecs: Iterable<AnnotationSpec>): PropertySpec.Builder
addKdoc
Link copied to clipboard
fun addKdoc(block: CodeBlock): PropertySpec.Builder
fun addKdoc(format: String, vararg args: Any): PropertySpec.Builder
addModifiers
Link copied to clipboard
fun addModifiers(vararg modifiers: KModifier): PropertySpec.Builder
fun addModifiers(modifiers: Iterable<KModifier>): PropertySpec.Builder
addOriginatingElement
Link copied to clipboard
open fun addOriginatingElement(originatingElement: Element): PropertySpec.Builder
Adds an originatingElement to this type's list of originating elements.
addTypeVariable
Link copied to clipboard
fun addTypeVariable(typeVariable: TypeVariableName): PropertySpec.Builder
addTypeVariables
Link copied to clipboard
fun addTypeVariables(typeVariables: Iterable<TypeVariableName>): PropertySpec.Builder
build
Link copied to clipboard
fun build(): PropertySpec
delegate
Link copied to clipboard
fun delegate(codeBlock: CodeBlock): PropertySpec.Builder
fun delegate(format: String, vararg args: Any?): PropertySpec.Builder
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getter
Link copied to clipboard
fun getter(getter: FunSpec): PropertySpec.Builder
hashCode
Link copied to clipboard
open fun hashCode(): Int
initializer
Link copied to clipboard
fun initializer(codeBlock: CodeBlock): PropertySpec.Builder
fun initializer(format: String, vararg args: Any?): PropertySpec.Builder
mutable
Link copied to clipboard
fun mutable(mutable: Boolean = true): PropertySpec.Builder
True to create a var instead of a val.
receiver
Link copied to clipboard
fun receiver(receiverType: TypeName): PropertySpec.Builder
fun receiver(receiverType: Type): PropertySpec.Builder
fun receiver(receiverType: KClass<*>): PropertySpec.Builder
setter
Link copied to clipboard
fun setter(setter: FunSpec): PropertySpec.Builder
tag
Link copied to clipboard
open fun tag(type: Class<*>, tag: Any?): PropertySpec.Builder
Attaches tag to the request using type as a key.
open fun tag(type: KClass<*>, tag: Any?): PropertySpec.Builder
Attaches tag to the request using type as a key.
toString
Link copied to clipboard
open fun toString(): String

Properties

annotations
Link copied to clipboard
val annotations: MutableList<AnnotationSpec>
modifiers
Link copied to clipboard
val modifiers: MutableList<KModifier>
originatingElements
Link copied to clipboard
open override val originatingElements: MutableList<Element>
Mutable map of the current originating elements this builder contains.
tags
Link copied to clipboard
open override val tags: MutableMap<KClass<*>, Any>
Mutable map of the current tags this builder contains.
typeVariables
Link copied to clipboard
val typeVariables: MutableList<TypeVariableName>

Extensions

jvmDefault
Link copied to clipboard
fun PropertySpec.Builder.jvmDefault(): PropertySpec.Builder
jvmField
Link copied to clipboard
fun PropertySpec.Builder.jvmField(): PropertySpec.Builder
jvmStatic
Link copied to clipboard
fun PropertySpec.Builder.jvmStatic(): PropertySpec.Builder
jvmSuppressWildcards
Link copied to clipboard
fun PropertySpec.Builder.jvmSuppressWildcards(suppress: Boolean = true): PropertySpec.Builder
tag
Link copied to clipboard
inline fun <T : Any> PropertySpec.Builder.tag(tag: T?): PropertySpec.Builder
Attaches tag to the request using T as a key.
transient
Link copied to clipboard
fun PropertySpec.Builder.transient(): PropertySpec.Builder
volatile
Link copied to clipboard
fun PropertySpec.Builder.volatile(): PropertySpec.Builder