Annotation Type Raw


  • @Documented
    @Retention(RUNTIME)
    @Target({METHOD,PARAMETER})
    public @interface Raw
    Allows passing and returning Java objects with native functions and raw JNI types. By default, only descendents of Pointer, direct NIO Buffer, String, primitive types, and their arrays are allowed as arguments to native functions. We can use this annotation to tell the Generator that we wish to manipulate the actual raw JNI objects in C++.
    See Also:
    Generator
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean withEnv
      If true, passes the JNIEnv* as first argument to the native function.
    • Element Detail

      • withEnv

        boolean withEnv
        If true, passes the JNIEnv* as first argument to the native function.
        Default:
        false