本文整理了Java中com.sun.jna.Native.findEnclosingLibraryClass()
方法的一些代码示例,展示了Native.findEnclosingLibraryClass()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Native.findEnclosingLibraryClass()
方法的具体详情如下:
包路径:com.sun.jna.Native
类名称:Native
方法名:findEnclosingLibraryClass
[英]Find the library interface corresponding to the given class. Checks all ancestor classes and interfaces for a declaring class which implements Library.
[中]查找与给定类对应的库接口。检查实现库的声明类的所有祖先类和接口。
代码示例来源:origin: net.java.dev.jna/jna
Class<?> fromDeclaring = findEnclosingLibraryClass(declaring);
if (fromDeclaring != null) {
return fromDeclaring;
return findEnclosingLibraryClass(cls.getSuperclass());
代码示例来源:origin: net.java.dev.jna/jna
Class<?> mappingClass = findEnclosingLibraryClass(type);
if (mappingClass != null) {
loadLibraryInstance(mappingClass);
代码示例来源:origin: org.elasticsearch/jna
Class<?> fromDeclaring = findEnclosingLibraryClass(declaring);
if (fromDeclaring != null) {
return fromDeclaring;
return findEnclosingLibraryClass(cls.getSuperclass());
代码示例来源:origin: org.elasticsearch/jna
Class<?> mappingClass = findEnclosingLibraryClass(type);
if (mappingClass != null) {
loadLibraryInstance(mappingClass);
内容来源于网络,如有侵权,请联系作者删除!