Annotation Interface CEnumLookup


@Retention(RUNTIME) @Target(METHOD) public @interface CEnumLookup
Annotation for a method that returns the Java enumeration object for a given C integer value. The method must be within a class annotated with CEnum. The method must be declared static, native, and must have exactly one parameter (the C value that is to be looked up). The method can have any name.

The Java enumeration can have multiple values with the same C value. However, in that case one Java value must be selected manually using the attribute CEnumConstant.includeInLookup(). All but one Java values must have this attribute set to false.

Since:
19.0