Top Description Methods
org.graalvm.nativeimage.c.constant

public @Interface CEnumLookup

extends Annotation
Annotations
@Retention:RUNTIME
@Target:METHOD
Imports
java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target

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

Method Summary

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString