Annotation Interface CEnumConstant


@Retention(RUNTIME) @Target(FIELD) public @interface CEnumConstant
Provides additional properties for a field (i.e., an enumeration value) of Java enumeration annotated with CEnum.
Since:
19.0
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Specifies whether the annotated enumeration value is returned by the lookup method annotated with CEnumLookup.
    Specifies the name of the imported C enum constant.
  • Element Details

    • value

      String value
      Specifies the name of the imported C enum constant.
      Since:
      19.0
      Default:
      ""
    • includeInLookup

      boolean includeInLookup
      Specifies whether the annotated enumeration value is returned by the lookup method annotated with CEnumLookup.
      Since:
      19.0
      Default:
      true