Interface KotlinConstructorPropertySupport
-
- All Implemented Interfaces:
-
io.toolisticon.kotlin.generation.builder.KotlinTaggableBuilder
public interface KotlinConstructorPropertySupport<SELF extends Object> implements KotlinTaggableBuilder<SELF>
All typeSpecs that provide support for constructor properties use this shared code.
-
-
Method Summary
Modifier and Type Method Description abstract SELF
addConstructorProperty(KotlinConstructorPropertySpecSupplier spec)
Implementing builder needs to store the spec provided and apply it to the build. SELF
addConstructorProperty(String name, TypeName type, Function1<KotlinConstructorPropertySpecBuilder, Unit> block)
Allows inline declartion of constructor property. SELF
addConstructorProperty(String name, KClass<?> type, Function1<KotlinConstructorPropertySpecBuilder, Unit> block)
Allows inline declartion of constructor property. -
-
Method Detail
-
addConstructorProperty
abstract SELF addConstructorProperty(KotlinConstructorPropertySpecSupplier spec)
Implementing builder needs to store the spec provided and apply it to the build.
-
addConstructorProperty
SELF addConstructorProperty(String name, TypeName type, Function1<KotlinConstructorPropertySpecBuilder, Unit> block)
Allows inline declartion of constructor property.
-
addConstructorProperty
SELF addConstructorProperty(String name, KClass<?> type, Function1<KotlinConstructorPropertySpecBuilder, Unit> block)
Allows inline declartion of constructor property.
-
-
-
-