@Retention(value=RUNTIME) @Target(value=METHOD) public @interface CFieldOffset
C struct
. The method must not have
any parameters. The return type must be a primitive integer type or a word type
.
Calls to the method are replaced with a compile time constant. If the annotation is used on a
non-static method, the receiver is ignored. Java does not allow an interface method to be
declared static native
. So the annotated method must either be non-static (with the
receiver being ignored), or static but non-native (with the method body being ignored).