Package lombok.experimental
Annotation Type FieldNameConstants
Generates an inner type, containing String constants containing the field name for each field. Alternatively, generates an inner enum with enum values matching each field name.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic @interface
If present, do not include this field in the generated fieldnames inner type.static @interface
If present, include this field in the generated fieldnames inner type (default). -
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
boolean
Only include fields and methods explicitly marked with@FieldNameConstants.Include
.
-
Element Details
-
level
AccessLevel level- Default:
PUBLIC
-
asEnum
boolean asEnum- Default:
false
-
innerTypeName
String innerTypeName- Default:
""
-
onlyExplicitlyIncluded
boolean onlyExplicitlyIncludedOnly include fields and methods explicitly marked with@FieldNameConstants.Include
. Normally, all (non-static) fields are included by default.- Returns:
- If
true
, don't include non-static fields automatically (default:false
).
- Default:
false
-