Annotation Type FieldNameConstants


@Target(TYPE) @Retention(SOURCE) public @interface 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 Classes
    Modifier and Type
    Class
    Description
    static @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

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
     
     
     
    boolean
    Only include fields and methods explicitly marked with @FieldNameConstants.Include.
  • Element Details

    • level

      Default:
      PUBLIC
    • asEnum

      boolean asEnum
      Default:
      false
    • innerTypeName

      String innerTypeName
      Default:
      ""
    • onlyExplicitlyIncluded

      boolean onlyExplicitlyIncluded
      Only 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