Builder

class Builder : Taggable.Builder<FileSpec.Builder>

Functions

addComment
Link copied to clipboard
fun addComment(format: String, vararg args: Any): FileSpec.Builder
addExtension
Link copied to clipboard
fun addExtension(extensionSpec: ExtensionSpec): FileSpec.Builder
addFunction
Link copied to clipboard
fun addFunction(functionSpec: FunctionSpec): FileSpec.Builder
addImport
Link copied to clipboard
fun addImport(importSpec: ImportSpec): FileSpec.Builder
fun addImport(moduleName: String, vararg attributes: AttributeSpec): FileSpec.Builder
addMember
Link copied to clipboard
fun addMember(memberSpec: FileMemberSpec): FileSpec.Builder
addProperty
Link copied to clipboard
fun addProperty(propertySpec: PropertySpec): FileSpec.Builder
addType
Link copied to clipboard
fun addType(typeSpec: AnyTypeSpec): FileSpec.Builder
build
Link copied to clipboard
fun build(): FileSpec
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
indent
Link copied to clipboard
fun indent(indent: String): FileSpec.Builder
tag
Link copied to clipboard
fun <T : Any> tag(type: Class<T>, tag: T?): FileSpec.Builder
Attaches tag to the request using type as a key.
fun <T : Any> tag(type: KClass<T>, tag: T?): FileSpec.Builder
Attaches tag to the request using type as a key.
toString
Link copied to clipboard
open fun toString(): String

Properties

moduleName
Link copied to clipboard
val moduleName: String
name
Link copied to clipboard
val name: String
tags
Link copied to clipboard
val tags: MutableMap<KClass<*>, Any>
Mutable map of the current tags this builder contains.

Extensions

tag
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.