AnnotationSpec

class AnnotationSpec : Taggable

A generated annotation on a declaration.

Types

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

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
tag
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.
toBuilder
Link copied to clipboard
fun toBuilder(): AnnotationSpec.Builder
toString
Link copied to clipboard
open override fun toString(): String

Properties

members
Link copied to clipboard
val members: List<CodeBlock>
tags
Link copied to clipboard
open override val tags: Map<KClass<*>, Any>
Returns all tags.
typeName
Link copied to clipboard
val typeName: TypeName
useSiteTarget
Link copied to clipboard
val useSiteTarget: AnnotationSpec.UseSiteTarget?