public interface IFieldWriter extends IAnnotationWriter
| Modifier and Type | Method and Description |
|---|---|
IFieldWriter |
generics(Class<?> generics)
Define the parameter type of your field.
|
IFieldWriter |
hasGetter(boolean getter)
Define if is necessary to generate a getter method for this field.
|
IFieldWriter |
hasSetter(boolean setter)
Define if is necessary to generate a setter method for this field.
|
IFieldWriter |
modifiers(ModifierEnum... modifiers)
Define the modifiers that you want in your field.
|
IFieldWriter |
name(String name)
Define the name of your field.
|
IFieldWriter |
type(Class<?> type)
Define the class type of your field.
|
IFieldWriter |
value(Object value)
Define the field's initial value.
|
IFieldWriter |
visibility(VisibilityEnum visibility)
Define the visibility for your field.
|
annotation, annotation, annotationIFieldWriter name(String name)
name - of the fieldIFieldWriter type(Class<?> type)
type - of the fieldIFieldWriter generics(Class<?> generics)
generics - of the fieldIFieldWriter value(Object value)
Integer, a Float, a Long, a
Double or a String (for int,
float, long or String fields
respectively). This parameter is only used for static
fields. Its value is ignored for non static fields, which
must be initialized through bytecode instructions in
constructors or methods.value - of the fieldIFieldWriter visibility(VisibilityEnum visibility)
Ex: PUBLIC, PRIVATE or PROTECTED
visibility - of the fieldIFieldWriter modifiers(ModifierEnum... modifiers)
Ex: FINAL, STATIC...
modifiers - of the fieldIFieldWriter hasGetter(boolean getter)
getter - if the field should have the getter methodIFieldWriter hasSetter(boolean setter)
setter - if the field should have the setter methodCopyright © 2018 Esfinge Framework. All rights reserved.