kotlinpoet / com.squareup.kotlinpoet / AnnotationSpec

AnnotationSpec

class AnnotationSpec

A generated annotation on a declaration.

Types

Builder

class Builder

UseSiteTarget

enum class UseSiteTarget

Properties

members

val members: List<CodeBlock>

type

val type: TypeName

useSiteTarget

val useSiteTarget: UseSiteTarget?

Functions

equals

fun equals(other: Any?): Boolean

hashCode

fun hashCode(): Int

toBuilder

fun toBuilder(): Builder

toString

fun toString(): String

Companion Object Functions

builder

fun builder(type: ClassName): Builder
fun builder(type: Class<*>): Builder
fun builder(type: KClass<*>): Builder

get

fun get(annotation: Annotation, includeDefaultValues: Boolean = false): AnnotationSpec
fun get(annotation: AnnotationMirror): AnnotationSpec