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
@Throws
annotation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
ThrowsAnnotation.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static ThrowsAnnotation.Companion
Companion
-
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 KotlinAnnotationSpec
spec()
-
-
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()
-
-
-
-