Class KotlinFunctionDeclaration
java.lang.Object
io.spring.initializr.generator.language.kotlin.KotlinFunctionDeclaration
- All Implemented Interfaces:
Annotatable
Declaration of a function written in Kotlin.
- Author:
- Stephane Nicoll
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder for creating aKotlinFunctionDeclaration. -
Method Summary
Modifier and TypeMethodDescriptionReturn theAnnotationContainerto use to configure the annotations of this element.Creates a new builder for the function with the given name.
-
Method Details
-
function
Creates a new builder for the function with the given name.- Parameters:
name- the name- Returns:
- the builder
-
annotations
Description copied from interface:AnnotatableReturn theAnnotationContainerto use to configure the annotations of this element.- Specified by:
annotationsin interfaceAnnotatable- Returns:
- the annotation container
-