Builder

abstract class Builder<out B : AttributedSpec.Builder<B>> : Taggable.Builder<B>

The builder analogue to AttributedSpec types.

Constructors

Builder
Link copied to clipboard
fun Builder()

Functions

addAttribute
Link copied to clipboard
fun addAttribute(attribute: AttributeSpec): B
fun addAttribute(name: String, vararg arguments: String): B
tag
Link copied to clipboard
fun <T : Any> tag(type: Class<T>, tag: T?): B
Attaches tag to the request using type as a key.
fun <T : Any> tag(type: KClass<T>, tag: T?): B
Attaches tag to the request using type as a key.

Properties

attributes
Link copied to clipboard
val attributes: MutableList<AttributeSpec>
Mutable list of the current attributes this builder contains.
tags
Link copied to clipboard
val tags: MutableMap<KClass<*>, Any>
Mutable map of the current tags this builder contains.

Inheritors

EnumerationCaseSpec
Link copied to clipboard
FunctionSpec
Link copied to clipboard
ImportSpec
Link copied to clipboard
ParameterSpec
Link copied to clipboard
PropertySpec
Link copied to clipboard
TypeAliasSpec
Link copied to clipboard
TypeSpec
Link copied to clipboard