Package io.micronaut.sourcegen.model
Class AbstractElementBuilder<ThisType>
java.lang.Object
io.micronaut.sourcegen.model.AbstractElementBuilder<ThisType>
- Type Parameters:
ThisType
- The type of this builder
- Direct Known Subclasses:
FieldDef.FieldDefBuilder
,MethodDef.MethodDefBuilder
,ObjectDefBuilder
,ParameterDef.ParameterDefBuilder
,PropertyDef.PropertyDefBuilder
public sealed class AbstractElementBuilder<ThisType>
extends Object
permits ObjectDefBuilder<ThisType>, FieldDef.FieldDefBuilder, MethodDef.MethodDefBuilder, ParameterDef.ParameterDefBuilder, PropertyDef.PropertyDefBuilder
The abstract element builder.
- Since:
- 1.0
- Author:
- Denis Stepanov
-
Field Summary
Modifier and TypeFieldDescriptionprotected final List<AnnotationDef>
protected final String
protected final ThisType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal ThisType
addAnnotation
(AnnotationDef annotationDef) final ThisType
addAnnotation
(ClassTypeDef typeDef) final ThisType
addAnnotation
(Class<? extends Annotation> annotationType) final ThisType
addAnnotation
(String annotationName) final ThisType
addAnnotations
(AnnotationDef... annotationDefs) final ThisType
addAnnotations
(List<AnnotationDef> annotationDefs) final ThisType
addJavadoc
(String doc) final ThisType
addModifiers
(Collection<Modifier> modifiers) final ThisType
addModifiers
(Modifier... modifiers) final ThisType
overrideModifiers
(Modifier... modifiers) Overrides the modifiers.
-
Field Details
-
name
-
modifiers
-
annotations
-
javadoc
-
thisInstance
-
-
Constructor Details
-
AbstractElementBuilder
-
-
Method Details
-
addModifiers
-
addModifiers
-
overrideModifiers
Overrides the modifiers.- Parameters:
modifiers
- The modifier- Returns:
- this type
-
addAnnotation
-
addAnnotation
-
addAnnotation
-
addAnnotation
-
addAnnotations
-
addAnnotations
-
addJavadoc
-