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:
 AnnotationObjectDef.AnnotationMemberDefBuilder,AnnotationObjectDef.AnnotationObjectDefBuilder,FieldDef.FieldDefBuilder,MethodDef.MethodDefBuilder,ObjectDefBuilder,ParameterDef.ParameterDefBuilder,PropertyDef.PropertyDefBuilder
public sealed class AbstractElementBuilder<ThisType>
extends Object
permits AnnotationObjectDef.AnnotationMemberDefBuilder, AnnotationObjectDef.AnnotationObjectDefBuilder, FieldDef.FieldDefBuilder, MethodDef.MethodDefBuilder, ObjectDefBuilder<ThisType>, ParameterDef.ParameterDefBuilder, PropertyDef.PropertyDefBuilder
The abstract element builder.
- Since:
 - 1.0
 - Author:
 - Denis Stepanov
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<AnnotationDef>protected final Stringprotected booleanprotected final ThisType - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionfinal ThisTypeaddAnnotation(AnnotationDef annotationDef) final ThisTypeaddAnnotation(ClassTypeDef typeDef) final ThisTypeaddAnnotation(Class<? extends Annotation> annotationType) final ThisTypeaddAnnotation(String annotationName) final ThisTypeaddAnnotations(AnnotationDef... annotationDefs) final ThisTypeaddAnnotations(List<AnnotationDef> annotationDefs) final ThisTypeaddJavadoc(String doc) final ThisTypeaddJavadoc(List<String> doc) Adds javadoc.final ThisTypeaddModifiers(Collection<Modifier> modifiers) final ThisTypeaddModifiers(Modifier... modifiers) final ThisTypeoverrideModifiers(Modifier... modifiers) Overrides the modifiers.final ThisTypeMarks the element as synthetic.final ThisTypesynthetic(boolean synthetic) Marks the element as synthetic. 
- 
Field Details
- 
name
 - 
modifiers
 - 
annotations
 - 
javadoc
 - 
thisInstance
 - 
synthetic
protected boolean synthetic 
 - 
 - 
Constructor Details
- 
AbstractElementBuilder
 
 - 
 - 
Method Details
- 
synthetic
Marks the element as synthetic.- Returns:
 - The builder
 
 - 
synthetic
Marks the element as synthetic.- Parameters:
 synthetic- Is synthetic- Returns:
 - The builder
 
 - 
addModifiers
 - 
addModifiers
 - 
overrideModifiers
Overrides the modifiers.- Parameters:
 modifiers- The modifier- Returns:
 - this type
 
 - 
addAnnotation
 - 
addAnnotation
 - 
addAnnotation
 - 
addAnnotation
 - 
addAnnotations
 - 
addAnnotations
 - 
addJavadoc
 - 
addJavadoc
Adds javadoc.- Parameters:
 doc- The javadoc- Returns:
 - The builder
 
 
 -