Class JavaFieldDeclaration
java.lang.Object
io.spring.initializr.generator.language.java.JavaFieldDeclaration
- All Implemented Interfaces:
Annotatable
Declaration of a field written in Java.
- Author:
- Matt Berteaux
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionReturn theAnnotationContainerto use to configure the annotations of this element.static JavaFieldDeclaration.BuilderCreates a new builder for the field with the given name.intReturn the modifiers.getName()Return the name.Return the return type.@Nullable ObjectgetValue()Return the value.booleanReturn whether this field is initialized.
-
Method Details
-
field
Creates a new builder for the field with the given name.- Parameters:
name- the field name- Returns:
- the builder
-
annotations
Description copied from interface:AnnotatableReturn theAnnotationContainerto use to configure the annotations of this element.- Specified by:
annotationsin interfaceAnnotatable- Returns:
- the annotation container
-
getModifiers
public int getModifiers()Return the modifiers.- Returns:
- the modifiers
-
getName
-
getReturnType
-
getValue
-
isInitialized
public boolean isInitialized()Return whether this field is initialized.- Returns:
- whether the field is initialized.
-