Use Native Methods Judiciously
明智的使用本地(Native)方法
A native peer is a native object to which a normal object delegates via native methods.
本地对等体是一个本地对象,普通对象通过本地方法委托给本地对象。
This generates a trace of the native methods called as well as the JNI callbacks that they make.
这将生成对已调用的本机方法以及它们发起的JNI回调的跟踪。
The basic idea is to wrap the native methods as web services and run them in containers outside the application server process.
基本的想法就是将本地的方法封装成Web服务,并且在应用程序服务器进程外面的容器中运行它们。
Use the code in Listing 3 to create a named pipe on Windows using the native methods declared in the Pipes.h header file and implemented in the pipe.c.
使用清单3中的代码在Windows上创建一个指定管道(使用在Pipes . h头文件中声明并在Pipe . c代码中实现的本机方法。)
Therefore, SPOT programs don't have access to file streams; there's no reflection, no serialisation, no classloading, no native methods, no regular expressions, no Swing, and only limited data types.
因此,SPOT程序不能访问文件流;没有反射,没有串行化,没有本地方法,没有正则表达式,没有Swing,只有有限的数据类型。
Native code is compiled (and can be recompiled) by a Just-in-time (JIT) compiler while the application runs, based on which classes and methods are invoked frequently.
本机代码在应用程序运行时由即时(JIT)编译器编译(而且可以重新编译),基于经常调用的类和方法。
This tool either applies native code compilation to all methods of all classes in a JAR file or applies it selectively to the methods of interest.
该工具对JAR文件中所有类的所有方法应用本地代码编译,也可以选择性地对需要的方法应用本地代码编译。
When turned on, it will report various JNI events, such as when native libraries are loaded and methods are bound; again, the output can vary from one release or JVM to another.
打开时,它将报告各种JNI事件,比如,本地库何时加载,方法何时弹回;再一次强调,在不同JVM版本中,输出会发生变化。
By using these methods to access larger arrays, you can ensure that you copy only the region of the array that the native will actually use.
通过使用这些方法访问较大的数组,您可以确保只复制本机代码将要实际使用的数组部分。
JIT compilers selectively compile the most frequently executing methods to native code while programs are running.
程序运行时,JIT编译器选择将最频繁执行的方法编译成本地代码。
Compiled methods loaded from JXEs execute as native code.
将从jxe中加载的编译了的方法作为本地代码执行。
InfoQ What's the status of FFI and other methods for accessing native libraries?
InfoQFFI和其他访问本地库的方法目前处在什么状况?
When sending data to a native language application, a new instance of the class is created and setter methods are used to populate the attributes.
在发送数据到本地语言应用程序时,将创建类的新实例且setter方法用于填充属性。
The jxeinajar tool compiles the methods in a JAR file and constructs a JXE file that contains both the contents of the original JAR file and the native code generated by the AOT compiler.
jxeinajar工具编译JAR文件中的方法并构造一个JXE 文件,后者包含原始 JAR 文件的内容以及AOT编译器生成的本地代码。
This completes the transformation: AllCapsString provides the full behavior of a String, allowing you to override native String methods as appropriate.
这将完成转换:allcapsstring提供了String的全部行为,允许您根据情况覆盖string方法。
Zend_Gdata_Spreadsheets also comes with some shortcut methods that convert list and cell feeds into native PHP arrays for easier processing.
Zend_Gdata_Spreadsheets还提供了一些快捷方法,可以将列表和单元格提要转换为原生php数组以简化处理。
The second file contains JNI native declarations for each of the methods in the interface, shown in Listing 5.
第二个文件包含接口中每个方法的JNI本机声明,如清单5所示。
The SDK provides two methods to authenticate, one that is referred to as single-sign on which USES, if installed, the native Facebook application dialogs, and the default WebView approach to dialogs.
SDK提供两种方法进行身份认证,一种称之为单点登录,如果安装了的话,它使用原生的Facebook应用程序对话框,另一种是默认的WebView方法。
The native may not make any JNI calls between these methods and may not block for any reason.
本机可能不会在这些方法之间发起任何调用,并且可能不会由于任何原因而阻塞。
When receiving data from a native language application, the byte stream is fed into a new instance of the class, and getter methods are used to read the attributes.
在从本地语言应用程序接收数据时,字节流被送入类的新实例,且getter方法用于读取属性。
As we now know, these widely dispersed tribes of Native Americans differed greatly from one to another in language, government, social organization, customs, housing, and methods of survival.
据我们所知,这些分布广泛的美洲土著部落在语言,管理形式,社会组织,风俗习惯,房屋建筑和生存方式上有很大的不同。
In order to overcome this phenomenon, teachers should optimize teaching methods to ensure efficient input, improve feedback strategies and reduce the negative influence of one's native tongue.
如果教师能够优化教学方法、确保有效输入、改善交际反馈策略、积极引导、克服母语负迁移,这种现象就可缓解和防止。
The altitude pika, whose deficient pulmonary mastcyte is demonstrated by three enlisted mastcyte—listing staining methods, is a kind of altitude native animal adapted hypoxia.
高原鼠兔是适应低氧的土生动物,使用显示肥大细胞的三种染色方法,证实肺组织缺乏肥大细胞。
Methods: 300 subjects were selected to assess the valence, arousal and dominance of all the 704 pictures in IAPS with the order to make the native assessment in China.
方法:本研究选取中国大学生被试300名。对全部704张IAPS网片从效价、唤醒度、优势度三个维度进行了中国本土化评定。
Results the methods were specific and reproducible, the native contrast experiment was little interference.
结果鉴别方法专属性强,重现性好,阴性对照无干扰。
Analyzed the situation of using the native language in English teaching, the author put the methods on the proper use of native language and a view to improve English teaching effectiveness.
分析我国目前英语教学中本族语使用的现状,提出正确使用本族语的方法,以期提高英语教学效果。
Available with the new concept of "writing culture" and the schema theory, this paper discusses the contents and methods of the teaching in non - native language writing culture.
本文借助“写作文化”新概念和图式理论探讨了非母语写作文化教学的内容和方法。
In the software design, this paper, analyzing the native records of cuff pressure during BP measurement, developed two methods to improve the oscillometric blood pressure measurement.
在算法设计方面,本论文分析了血压测量中的原始数据,开发出两种方法,用来提高示波法血压测量的精度。
In the software design, this paper, analyzing the native records of cuff pressure during BP measurement, developed two methods to improve the oscillometric blood pressure measurement.
在算法设计方面,本论文分析了血压测量中的原始数据,开发出两种方法,用来提高示波法血压测量的精度。
应用推荐