AnnotationSpec

class AnnotationSpec : Taggable

A generated annotation on a declaration.

Types

Link copied to clipboard
class Builder : Taggable.Builder<AnnotationSpec.Builder>
Link copied to clipboard
object Companion
Link copied to clipboard
enum UseSiteTarget : Enum<AnnotationSpec.UseSiteTarget>

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun <T : Any> tag(type: Class<T>): T?

Returns the tag attached with type as a key, or null if no tag is attached with that key.

open override fun <T : Any> tag(type: KClass<T>): T?

Returns the tag attached with type as a key, or null if no tag is attached with that key.

Link copied to clipboard
fun toBuilder(): AnnotationSpec.Builder
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val members: List<CodeBlock>
Link copied to clipboard
open override val tags: Map<KClass<*>, Any>

Returns all tags.

Link copied to clipboard
val typeName: TypeName
Link copied to clipboard
val useSiteTarget: AnnotationSpec.UseSiteTarget?