Class GeneratedAnnotation
-
- All Implemented Interfaces:
-
io.toolisticon.kotlin.generation.poet.AnnotationSpecSupplier
,io.toolisticon.kotlin.generation.poet.PoetSpecSupplier
,io.toolisticon.kotlin.generation.spec.KotlinAnnotationSpecSupplier
,io.toolisticon.kotlin.generation.spec.KotlinGeneratorSpecSupplier
,java.util.function.Supplier
public final class GeneratedAnnotation implements KotlinAnnotationSpecSupplier
Builder to create a
@Generated
annotation.
-
-
Constructor Summary
Constructors Constructor Description GeneratedAnnotation(String value, Instant date, List<String> comments)
-
Method Summary
Modifier and Type Method Description final String
getValue()
final Instant
getDate()
final List<String>
getComments()
final GeneratedAnnotation
generator(KClass<?> type)
final GeneratedAnnotation
date(Instant instant)
final GeneratedAnnotation
comment(Pair<String, String> comment)
KotlinAnnotationSpec
spec()
-
-
Method Detail
-
getComments
final List<String> getComments()
-
generator
final GeneratedAnnotation generator(KClass<?> type)
-
date
final GeneratedAnnotation date(Instant instant)
-
comment
final GeneratedAnnotation comment(Pair<String, String> comment)
-
spec
KotlinAnnotationSpec spec()
-
-
-
-