开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜