Builder
Functions
add Aliased Import
Link copied to clipboard
fun addAliasedImport(memberName: MemberName, as: String): FileSpec.Builder
Content copied to clipboard
fun addAliasedImport(className: ClassName, memberName: String, as: String): FileSpec.Builder
Content copied to clipboard
add Annotation
Link copied to clipboard
Add an annotation to the file.
add Comment
Link copied to clipboard
add Function
Link copied to clipboard
add Import
Link copied to clipboard
fun addImport(className: ClassName, vararg names: String): FileSpec.Builder
Content copied to clipboard
fun addImport(className: ClassName, names: Iterable<String>): FileSpec.Builder
Content copied to clipboard
fun addImport(class: Class<*>, names: Iterable<String>): FileSpec.Builder
Content copied to clipboard
fun addImport(packageName: String, vararg names: String): FileSpec.Builder
Content copied to clipboard
fun addImport(packageName: String, names: Iterable<String>): FileSpec.Builder
Content copied to clipboard
fun addImport(class: KClass<*>, names: Iterable<String>): FileSpec.Builder
Content copied to clipboard
add Property
Link copied to clipboard
add Type
Link copied to clipboard
add Type Alias
Link copied to clipboard
clear Comment
Link copied to clipboard
clear Imports
Link copied to clipboard
indent
Link copied to clipboard
tag
Link copied to clipboard
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
annotations
Link copied to clipboard
members
Link copied to clipboard
packageName
Link copied to clipboard
tags
Link copied to clipboard
Extensions
jvm Multifile Class
Link copied to clipboard
jvm Name
Link copied to clipboard
tag
Link copied to clipboard
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.