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
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceIf present, do not include this field in the generated fieldnames inner type.static @interfaceIf present, include this field in the generated fieldnames inner type (default). -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanbooleanOnly 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
-