Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun addDoc(format: String, vararg args: Any): TypeSpec.Builder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun addModifiers(vararg modifiers: Modifier): TypeSpec.Builder
Link copied to clipboard
fun addMutableProperty(name: String, type: TypeName, vararg modifiers: Modifier): TypeSpec.Builder
Link copied to clipboard
Link copied to clipboard
fun addProperty(name: String, type: TypeName, vararg modifiers: Modifier): TypeSpec.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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <T : Any> tag(type: Class<T>, tag: T?): TypeSpec.Builder
fun <T : Any> tag(type: KClass<T>, tag: T?): TypeSpec.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.

Properties

Link copied to clipboard

Mutable list of the current attributes this builder contains.

Link copied to clipboard

Mutable map of the current tags this builder contains.

Extensions

Link copied to clipboard
inline fun <T : Any> TypeSpec.Builder.tag(tag: T?): TypeSpec.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.