Class ThrowsAnnotation
-
- 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 ThrowsAnnotation implements KotlinAnnotationSpecSupplier
Creates a
@Throwsannotation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classThrowsAnnotation.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static ThrowsAnnotation.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description ThrowsAnnotation(List<TypeName> exceptions)Create new instance. ThrowsAnnotation(TypeName exception, TypeName exceptions)Create new instance. ThrowsAnnotation(KClass<out Throwable> exception, KClass<out Throwable> exceptions)Create new instance. ThrowsAnnotation(CodeBlockArray<CodeBlock> members)
-
Method Summary
Modifier and Type Method Description KotlinAnnotationSpecspec()-
-
Constructor Detail
-
ThrowsAnnotation
ThrowsAnnotation(List<TypeName> exceptions)
Create new instance.
-
ThrowsAnnotation
ThrowsAnnotation(TypeName exception, TypeName exceptions)
Create new instance.
-
ThrowsAnnotation
ThrowsAnnotation(KClass<out Throwable> exception, KClass<out Throwable> exceptions)
Create new instance.
-
ThrowsAnnotation
ThrowsAnnotation(CodeBlockArray<CodeBlock> members)
-
-
Method Detail
-
spec
KotlinAnnotationSpec spec()
-
-
-
-