class AnnotationSpec : Taggable
A generated annotation on a declaration. |
|
class ClassName : TypeName, Comparable<ClassName>
A fully-qualified class name for top-level and member classes. |
|
class CodeBlock
A fragment of a .kt file, potentially containing declarations, statements, and documentation. Code blocks are not necessarily well-formed Kotlin code, and are not validated. This class assumes kotlinc will check correctness later! |
|
object Dynamic : TypeName |
|
class FileSpec : Taggable
A Kotlin file containing top level objects like classes, objects, functions, properties, and type aliases. |
|
class FunSpec : Taggable, OriginatingElementsHolder
A generated function declaration. |
|
enum class KModifier |
|
class LambdaTypeName : TypeName |
|
data class MemberName
Represents the name of a member (such as a function or a property). |
|
class NameAllocator
Assigns Kotlin identifier names to avoid collisions, keywords, and invalid characters. To use, first create an instance and allocate all of the names that you need. Typically this is a mix of user-supplied names and constants: |
|
interface OriginatingElementsHolder
A type that can have originating elements. |
|
class ParameterizedTypeName : TypeName |
|
class ParameterSpec : Taggable
A generated parameter declaration. |
|
class PropertySpec : Taggable, OriginatingElementsHolder
A generated property declaration. |
|
interface Taggable
A type that can be tagged with extra metadata of the user's choice. |
|
class TypeAliasSpec : Taggable
A generated typealias declaration |
|
sealed class TypeName
Any type in Kotlin's type system. This class identifies simple types like |
|
class TypeSpec : Taggable, OriginatingElementsHolder
A generated class, interface, or enum declaration. |
|
class TypeVariableName : TypeName |
|
class WildcardTypeName : TypeName |
val ANNOTATION: ClassName |
|
val ANY: ClassName |
|
val ARRAY: ClassName |
|
val BOOLEAN: ClassName |
|
val BOOLEAN_ARRAY: ClassName |
|
val BYTE: ClassName |
|
val BYTE_ARRAY: ClassName |
|
val CHAR: ClassName |
|
val CHAR_ARRAY: ClassName |
|
val CHAR_SEQUENCE: ClassName |
|
val COLLECTION: ClassName |
|
val COMPARABLE: ClassName |
|
val DOUBLE: ClassName |
|
val DOUBLE_ARRAY: ClassName |
|
val DYNAMIC: Dynamic
Dynamic is a singleton |
|
val ENUM: ClassName |
|
val FLOAT: ClassName |
|
val FLOAT_ARRAY: ClassName |
|
val INT: ClassName |
|
val INT_ARRAY: ClassName |
|
val ITERABLE: ClassName |
|
val LIST: ClassName |
|
val LONG: ClassName |
|
val LONG_ARRAY: ClassName |
|
val MAP: ClassName |
|
val MAP_ENTRY: ClassName |
|
val MUTABLE_COLLECTION: ClassName |
|
val MUTABLE_ITERABLE: ClassName |
|
val MUTABLE_LIST: ClassName |
|
val MUTABLE_MAP: ClassName |
|
val MUTABLE_MAP_ENTRY: ClassName |
|
val MUTABLE_SET: ClassName |
|
val NOTHING: ClassName |
|
val NUMBER: ClassName |
|
val SET: ClassName |
|
val SHORT: ClassName |
|
val SHORT_ARRAY: ClassName |
|
val STAR: WildcardTypeName
The wildcard type |
|
val STRING: ClassName |
|
val THROWABLE: ClassName |
|
val U_BYTE: ClassName |
|
val U_BYTE_ARRAY: ClassName |
|
val U_INT: ClassName |
|
val U_INT_ARRAY: ClassName |
|
val U_LONG: ClassName |
|
val U_LONG_ARRAY: ClassName |
|
val U_SHORT: ClassName |
|
val U_SHORT_ARRAY: ClassName |
|
val UNIT: ClassName |
fun buildCodeBlock(builderAction: CodeBlock.Builder.() -> Unit): CodeBlock
Builds new CodeBlock by populating newly created CodeBlock.Builder using provided builderAction and then converting it to CodeBlock. |
|
fun <T : Any> Taggable.tag(): T?
Returns the tag attached with T as a key, or null if no tag is attached with that key. fun <T : Any> AnnotationSpec.Builder.tag(tag: T?): AnnotationSpec.Builderfun <T : Any> FileSpec.Builder.tag(tag: T?): FileSpec.Builderfun <T : Any> FunSpec.Builder.tag(tag: T?): FunSpec.Builderfun <T : Any> ParameterSpec.Builder.tag(tag: T?): ParameterSpec.Builderfun <T : Any> PropertySpec.Builder.tag(tag: T?): PropertySpec.Builderfun <T : Any> TypeAliasSpec.Builder.tag(tag: T?): TypeAliasSpec.Builderfun <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 |