Builder

class Builder : Taggable.Builder<AnnotationSpec.Builder>

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun addMember(codeBlock: CodeBlock): AnnotationSpec.Builder
fun addMember(format: String, vararg args: Any): AnnotationSpec.Builder
Link copied to clipboard
fun build(): AnnotationSpec
Link copied to clipboard
open fun tag(type: Class<*>, tag: Any?): AnnotationSpec.Builder
open fun tag(type: KClass<*>, tag: Any?): AnnotationSpec.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
fun useSiteTarget(useSiteTarget: AnnotationSpec.UseSiteTarget?): AnnotationSpec.Builder

Properties

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

Mutable map of the current tags this builder contains.

Extensions

Link copied to clipboard
inline fun <T : Any> AnnotationSpec.Builder.tag(tag: T?): AnnotationSpec.Builder

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.