Native

  • The @Native annotation indicates that a constant field can be accessed from native code.

  • It serves as a hint for tools generating native header files, guiding the necessity and content of these files.

  • @Native inherits methods from the java.lang.annotation.Annotation interface, such as annotationType(), equals(), hashCode(), and toString(), providing standard annotation functionalities.

public abstract @interface Native implements Annotation

Indicates that a field defining a constant value may be referenced from native code. The annotation may be used as a hint by tools that generate native header files to determine whether a header file is required, and if so, what declarations it should contain.

Inherited Method Summary