class Builder : Taggable.Builder<PropertySpec.Builder>, OriginatingElementsHolder.Builder<PropertySpec.Builder>
val annotations: MutableList<AnnotationSpec> |
|
val modifiers: MutableList<KModifier> |
|
val originatingElements: MutableList<Element>
Mutable map of the current originating elements this builder contains. |
|
val tags: MutableMap<KClass<*>, Any>
Mutable map of the current tags this builder contains. |
|
val typeVariables: MutableList<TypeVariableName> |
fun addAnnotation(annotationSpec: AnnotationSpec): PropertySpec.Builderfun addAnnotation(annotation: ClassName): PropertySpec.Builderfun addAnnotation(annotation: Class<*>): PropertySpec.Builderfun addAnnotation(annotation: KClass<*>): PropertySpec.Builder |
|
fun addAnnotations(annotationSpecs: Iterable<AnnotationSpec>): PropertySpec.Builder |
|
fun addKdoc(format: String, vararg args: Any): PropertySpec.Builderfun addKdoc(block: CodeBlock): PropertySpec.Builder |
|
fun addModifiers(vararg modifiers: KModifier): PropertySpec.Builder |
|
fun addTypeVariable(typeVariable: TypeVariableName): PropertySpec.Builder |
|
fun addTypeVariables(typeVariables: Iterable<TypeVariableName>): PropertySpec.Builder |
|
fun build(): PropertySpec |
|
fun delegate(format: String, vararg args: Any?): PropertySpec.Builderfun delegate(codeBlock: CodeBlock): PropertySpec.Builder |
|
fun getter(getter: FunSpec): PropertySpec.Builder |
|
fun initializer(format: String, vararg args: Any?): PropertySpec.Builderfun initializer(codeBlock: CodeBlock): PropertySpec.Builder |
|
fun mutable(mutable: Boolean = true): PropertySpec.Builder
True to create a |
|
fun receiver(receiverType: TypeName): PropertySpec.Builderfun receiver(receiverType: Type): PropertySpec.Builderfun receiver(receiverType: KClass<*>): PropertySpec.Builder |
|
fun setter(setter: FunSpec): PropertySpec.Builder |
open fun addOriginatingElement(originatingElement: Element): T
Adds an originatingElement to this type's list of originating elements. |
|
open fun tag(type: Class<*>, tag: Any?): Topen fun tag(type: KClass<*>, tag: Any?): T
Attaches tag to the request using type as a key. Tags can be read from a
request using Taggable.tag. Use |
fun PropertySpec.Builder.jvmDefault(): PropertySpec.Builder |
|
fun PropertySpec.Builder.jvmField(): PropertySpec.Builder |
|
fun PropertySpec.Builder.jvmStatic(): PropertySpec.Builder |
|
fun PropertySpec.Builder.jvmSuppressWildcards(suppress: Boolean = true): PropertySpec.Builder |
|
fun <T : Any> PropertySpec.Builder.tag(tag: T?): PropertySpec.Builder
Attaches tag to the request using T as a key. Tags can be read from a
request using Taggable.tag. Use |
|
fun PropertySpec.Builder.transient(): PropertySpec.Builder |
|
fun PropertySpec.Builder.volatile(): PropertySpec.Builder |