Package io.micronaut.sourcegen.model
Class ObjectDefBuilder<ThisType>
java.lang.Object
io.micronaut.sourcegen.model.AbstractElementBuilder<ThisType>
io.micronaut.sourcegen.model.ObjectDefBuilder<ThisType>
- Type Parameters:
ThisType
- The type of this builder
- Direct Known Subclasses:
ClassDef.ClassDefBuilder
,EnumDef.EnumDefBuilder
,InterfaceDef.InterfaceDefBuilder
,RecordDef.RecordDefBuilder
public sealed class ObjectDefBuilder<ThisType>
extends AbstractElementBuilder<ThisType>
permits ClassDef.ClassDefBuilder, InterfaceDef.InterfaceDefBuilder, RecordDef.RecordDefBuilder, EnumDef.EnumDefBuilder
The abstract builder that is used for specific types: interfaces, classes, records or enums.
- Since:
- 1.3
- Author:
- Andriy Dmytruk
-
Field Summary
Fields inherited from class io.micronaut.sourcegen.model.AbstractElementBuilder
annotations, javadoc, modifiers, name, thisInstance
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal ThisType
addInnerType
(ObjectDef innerType) final ThisType
final ThisType
addProperty
(PropertyDef property) final ThisType
addSuperinterface
(TypeDef superinterface) Methods inherited from class io.micronaut.sourcegen.model.AbstractElementBuilder
addAnnotation, addAnnotation, addAnnotation, addAnnotation, addJavadoc, addModifiers
-
Field Details
-
methods
-
properties
-
superinterfaces
-
innerTypes
-
-
Constructor Details
-
ObjectDefBuilder
-
-
Method Details
-
addMethod
-
addProperty
-
addSuperinterface
-
addInnerType
-