然后,在这些类文件中对适当方法的调用被编织入原始应用程序代码。
Then, calls to the appropriate methods in these class files are woven into the original application code.
如果我们现在就要从内存映射文件读或写信息,只需要调用带有正确偏移量的映射视图方法就行了。
If we need now to write or read information from it we just call the map view methods with the correct offset.
然后,只需在调用PHP文件时调用一个初始化方法,它会替您生成必需的前端XHR代码。
Then you simply call an initialization method when your PHP file is called, and it generates the necessary front-end XHR code for you.
开发者只需调用SWC文件中的值对象上的方法就行了,其他的代码都被生成好了。
The developer simply calls methods on the value objects within the SWC file and the rest is already programmed.
html(清单22)是一个简单的html文件,提供给用户一个GUI并询问他将要调用哪一个SOAP方法。
StartUp.html (Listing 22) is a simple HTML file that presents a GUI to the user and asks which SOAP method he or she wants to invoke.
为获取用户为这一文件定义的属性名,我们在视图上调用list方法。
To get a list of the user-defined attribute names for this file, we call the list method on the view.
在清单2中,代码首先包含了MDB2_Schema包所需的类文件,然后通过调用其静态方法factory以初始化mdb2抽象层。
In Listing 2, the code first includes the necessary class file for the MDB2_Schema package, and then initializes the MDB2 abstraction layer by calling its static factory method.
因此,我们将RESTful服务的结果保存到测试文件内,并创建了一个抽象方法来获得给定REST调用的URL。
Therefore, we saved the RESTful service results into test files, and created an abstraction method to obtain the URL for a given REST call.
调用readlines方法将文件中的所有行读入一个名为lines的数组。
Call the readlines method to read all the lines in the file into an array called lines.
inode_operations定义直接在inode上执行的操作,而file_operations定义与文件和目录相关的方法(标准系统调用)。
For example, inode_operations define those operations that operate directly on the inode and file_operations refer to those methods related to files and directories (the standard system calls).
要向在IMEasy. properties文件中定义的管理员列表发送警报,可从Watchit工具正在运行的任意插件调用sendchats方法。
To send the alert to the list of administrators defined in the IMEasy.properties file, the sendchats method can be called from any plug-in that the Watchit tool is running.
如果您想在服务器日志文件中查看方法调用的时间,可以添加System.out.println("VerifyRiskOfficerInvolvementmethodcalled")或类似语句。
You can also add System.out.println("VerifyRiskOfficerInvolvement method called") or a similar statement if you want to see when the method is called in server log files.
调用create的时候,Castor将使用映射文件(sql -mapping . xml)来确定如何将传递给该方法的对象存储为sql数据。
When you call create , Castor USES your mapping file (sql-mapping.xml) to figure out how to store the object you pass to that method as SQL data.
在该示例中,代码调用Image . FromStream方法将包含图像文件的流转换为可加载到PictureBox控件中的Image对象。
In the example, the code calls the Image.FromStream method to convert the stream containing the image file into an image object that can be loaded into a PictureBox control.
在解锁文件之前,通过调用C的flush库例程或 flush方法(如果喜欢使用 C++fstream 的话),刷新写入者进程中的数据。
Flush data in writer processes before unlocking a file by either calling C's flush library routine or the flush method (if you prefer a C++ fstream).
这个类包含file -visitor引擎穿越文件系统时所调用的回调方法。
This class contains the callback methods that the file-visitor engine will invoke as it traverses the file system.
在Linux中添加新文件系统的方法是调用register _ filesystem。
To add a new file system to Linux, register_filesystem is called.
如果某个脚本调用其他Jython模块的函数或类方法,则使用execfile函数加载来自其他jython脚本文件的jython脚本。
If a script invokes the functions or class methods of other Jython modules, use the execfile function to load a Jython script from another Jython script file. Listing 3 shows an example.
一旦您有了SEI实现,您就可以和您的附件一起调用它的方法(在本例中它是在一个您提供了名称的文件中)。
Once you have an SEI implementation, you can call its methods with your attachment (which for this example is in a file whose name you provide).
设想一个场景,您想要递归地访问一个目录树,在该树中的每个文件及目录上停下来,并为每个查找到的条目调用您自己的回调方法。
Imagine a scenario in which you want to traverse a directory tree recursively, stopping at each file and directory under that tree and having your own callback methods invoked for each entry found.
在配置文件中定义方法调用的能力是很重要的,不应该将这种能力限制于返回对象引用的方法。
The capability of defining method invocations in the configuration file is very important and should not be restricted to methods that return an object reference.
如果一个只有少量代码并且不包含循环的方法位于配置文件的顶部,那么它可能正被频繁调用。
A method without much code and with no loops at the top of a profile is probably being called very frequently.
回调方法如期望那样被调用,我们可以看到,树中的所有文件都已列出,并且所有目录均已被访问。
Our callback methods were invoked as expected, and we can see that all the files in the tree have been listed and all the directories have been visited.
一个方法出现在方法配置文件顶部的原因有两个:要么该方法被频繁调用,要么它在被调用时执行的工作太多。
A method appears near the top of a method profile for one of two reasons. Either the method is being called too often, or it is doing too much work when it's called.
第一,我们还可以查看方法的调用站点,还可以查看到包含此代码的文件名称。
First of all, you can see what the method call looks like in the call Sites column. You can also see the name of the file that contains this code.
清单6中是loadlib. h头文件,在调用main方法的源文件中使用了这个文件。
Listing 6 is the loadlib.h header file, which is used in the sources that call the main method.
Helper文件里面什么也没有:你可以在里面放入自己写的Ruby方法,并可以从视图模板中调用这些方法。
The helper file is empty: it's a place where you can put Ruby methods that you write and that you want to call from your view templates.
mkdirs方法是无损的,所以可以多次调用该方法,而不必担心当目录已经存在时会丢失已有的文件。
The File.mkdirs method is nondestructive, so you can call it over and over again without worrying about losing existing files if the directory already exists.
要使用全局方法来启用Web服务调用的缓存配置文件
To enable the cache configuration file for the web service call using the global method
其他两个构造方法只是调用静态方法IndexReader . open把你的文件路径或Directory对象转换成一个IndexReader。
The other two constructors just turn your file path or Directory object into an IndexReader by calling the static method IndexReader.open .
应用推荐