开发者

Is there a way to control visibility of the SWIG generated JNI class?

开发者 https://www.devze.com 2023-04-02 16:36 出处:网络
By default, SWIG generates the JNI class with public visibility.Is there a way to specify that the JNI class is only accessible within th开发者_StackOverflow社区e package? I found a solution.The follo

By default, SWIG generates the JNI class with public visibility. Is there a way to specify that the JNI class is only accessible within th开发者_StackOverflow社区e package?


I found a solution. The following will set the visibility to just the package:

%pragma(java) jniclassclassmodifiers="class"

See:

http://www.swig.org/Doc2.0/Java.html#Java_imclass_pragmas

0

精彩评论

暂无评论...
验证码 换一张
取 消