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.
    • Element Detail

      • level

        AccessLevel level
        Default:
        lombok.AccessLevel.PUBLIC
      • asEnum

        boolean asEnum
        Default:
        false
      • innerTypeName

        java.lang.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