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
Modifier and TypeClassDescriptionstatic final class
The field builder definition. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull FieldDef.FieldDefBuilder
Creates a new field builder with a name.static @NonNull FieldDef.FieldDefBuilder
Creates a new field builder with a name and type.static @NonNull FieldDef.FieldDefBuilder
Creates a new field builder with a name and type.final List<AnnotationDef>
final Modifier[]
final String
getName()
getType()
-
Field Details
-
name
-
modifiers
-
annotations
-
javadoc
-
-
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
-
getName
-
getModifiers
-
getModifiersArray
-
getAnnotations
-
getJavadoc
-