Package io.micronaut.sourcegen.model
Class FieldDef
java.lang.Object
io.micronaut.sourcegen.model.FieldDef
The field definition.
- Since:
 - 1.0
 - Author:
 - Denis Stepanov
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe field builder definition. - 
Field Summary
Fields - 
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull FieldDef.FieldDefBuilderCreates a new field builder with a name.static @NonNull FieldDef.FieldDefBuilderCreates a new field builder with a name and type.static @NonNull FieldDef.FieldDefBuilderCreates a new field builder with a name and type.final List<AnnotationDef>final Modifier[]final StringgetName()getType()boolean 
- 
Field Details
- 
name
 - 
modifiers
 - 
annotations
 - 
javadoc
 - 
synthetic
protected final boolean synthetic 
 - 
 - 
Method Details
- 
builder
Creates a new field builder with a name.- Parameters:
 name- The filed name- Returns:
 - The field builder
 - Since:
 - 1.5
 
 - 
builder
@NonNull public static @NonNull FieldDef.FieldDefBuilder builder(@NonNull @NonNull String name, @NonNull @NonNull TypeDef type) Creates a new field builder with a name and type.- Parameters:
 name- The filed nametype- The type- Returns:
 - The field builder
 - Since:
 - 1.5
 
 - 
builder
@NonNull public static @NonNull FieldDef.FieldDefBuilder builder(@NonNull @NonNull String name, @NonNull @NonNull Class<?> type) Creates a new field builder with a name and type.- Parameters:
 name- The filed nametype- The type- Returns:
 - The field builder
 - Since:
 - 1.5
 
 - 
getType
 - 
getInitializer
 - 
isSynthetic
public boolean isSynthetic()- Returns:
 - Is synthetic element
 
 - 
getName
 - 
getModifiers
 - 
getModifiersArray
 - 
getAnnotations
 - 
getJavadoc
 
 -