kotlinpoet / com.squareup.kotlinpoet / AnnotationSpec

AnnotationSpec

class AnnotationSpec

A generated annotation on a declaration.

Types

Builder class Builder

Properties

members val members: Map<String, List<CodeBlock>>
type val type: TypeName

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