Functions

Link copied to clipboard
fun addComment(format: String, vararg args: Any): FileSpec.Builder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun addImport(moduleName: String, vararg attributes: AttributeSpec): FileSpec.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
fun <T : Any> tag(type: Class<T>, tag: T?): FileSpec.Builder
fun <T : Any> tag(type: KClass<T>, tag: T?): FileSpec.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
Link copied to clipboard
Link copied to clipboard

Mutable map of the current tags this builder contains.

Extensions

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