Class KotlinPropertyDeclaration
java.lang.Object
io.spring.initializr.generator.language.kotlin.KotlinPropertyDeclaration
- All Implemented Interfaces:
Annotatable
Declaration of a property written in Kotlin.
- Author:
- Matt Berteaux
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builder for a property accessor.static class
Builder for creating aKotlinPropertyDeclaration
.static final class
Builder forval
properties.static final class
Builder forval
properties. -
Method Summary
Modifier and TypeMethodDescriptionReturn theAnnotationContainer
to use to configure the annotations of this element.Returns the modifiers.Returns a builder for aval
property with the given name.Returns a builder for avar
property with the given name.
-
Method Details
-
val
Returns a builder for aval
property with the given name.- Parameters:
name
- the name- Returns:
- the builder
-
var
Returns a builder for avar
property with the given name.- Parameters:
name
- the name- Returns:
- the builder
-
getModifiers
Returns the modifiers.- Returns:
- the modifiers
-
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
-