javapoet-dsl / com.mostlycertain.javapoetdsl / Annotations

Annotations

object Annotations

Properties

DEPRECATED

val DEPRECATED: AnnotationSpec

FUNCTIONAL_INTERFACE

val FUNCTIONAL_INTERFACE: AnnotationSpec

OVERRIDE

val OVERRIDE: AnnotationSpec

SAFE_VARARGS

val SAFE_VARARGS: AnnotationSpec

SUPPRESS_ALL_WARNINGS

val SUPPRESS_ALL_WARNINGS: AnnotationSpec

Functions

generated

Build an annotation that marks a type as generated.

fun generated(generatorName: String, generatedAt: Instant? = null, comments: String = "", targetVersion: JavaVersion = JavaVersion.VERSION_1_9): AnnotationSpec

of

fun of(type: ClassName): AnnotationSpec

suppressWarnings

fun suppressWarnings(vararg warnings: String): AnnotationSpec
fun suppressWarnings(warnings: List<String>): AnnotationSpec