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 class
Builder for creating aKotlinFunctionDeclaration
. -
Method Summary
Modifier and TypeMethodDescriptionReturn theAnnotationContainer
to 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:Annotatable
Return theAnnotationContainer
to use to configure the annotations of this element.- Specified by:
annotations
in interfaceAnnotatable
- Returns:
- the annotation container
-