Class DeprecatedAnnotation
-
- 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 DeprecatedAnnotation implements KotlinAnnotationSpecSupplier
Builder to create a
@Deprecated
annotation.
-
-
Field Summary
Fields Modifier and Type Field Description private final String
message
private final DeprecationLevel
deprecationLevel
-
Constructor Summary
Constructors Constructor Description DeprecatedAnnotation(String message, DeprecationLevel deprecationLevel)
-
Method Summary
Modifier and Type Method Description final String
getMessage()
final DeprecationLevel
getDeprecationLevel()
KotlinAnnotationSpec
spec()
-
-
Constructor Detail
-
DeprecatedAnnotation
DeprecatedAnnotation(String message, DeprecationLevel deprecationLevel)
-
-
Method Detail
-
getMessage
final String getMessage()
-
getDeprecationLevel
final DeprecationLevel getDeprecationLevel()
-
spec
KotlinAnnotationSpec spec()
-
-
-
-