简而言之,通过扩展我们可以从XSL文档中调用使用其它编程语言编写的方法。
Simply put, extensions are a way of calling a method written in some other programming language from within an XSL document.
通过抽取突出显示逻辑,可以编写调用highlightutil类的方法的单元测试。
By extracting the highlighting logic, you can write unit tests for it by calling methods on the HighlightUtil class.
编写检测器可以查找对特定静态方法的调用,这并不困难,但是大多数的bug检测器都包含相当多的分析和实现。
Writing a detector to find calls to a particular static method isn't that hard, but most bug detectors involve a fair bit more analysis and implementation effort.
清单8中electricXML (EXML)的顶级代码是任何这些示例中最简单的一个,通过单一方法调用就可以读取和编写文档。
The top-level code for Electric XML (EXML) in Listing 8 is the simplest of any of these examples, with a single method call each for reading and writing the document.
单元测试员们必须经常编写代码,这些代码可以将测试实现(如stub或mock)和产品实现绑定到相同的方法调用。
Unit testers must often write code that binds test implementations, such as stubs or mocks, and production implementations to the same method invocation.
同时在这里也可以编写你的Getter方法,这些Getter方法可以返回对象,使调用者能够对这些GUI元素进行查询和操作。
It is also where you will write your Getter Methods, which return objects enabling the Caller to query and manipulate these GUI elements.
本系列还会演示如何通过使用SAAJAPI进行简单的方法调用来读取和编写基于SOAP的XML消息,而且您可以选择通过Internet发送和接收此类消息。
This series also shows that by simply making method calls using the SAAJ API, you can read and write SOAP-based XML messages, and you can optionally send and receive such messages over the Internet.
您可以在功能区类中编写方法,控件便可以调用与特性值名称相同的方法。
You write methods in the Ribbon class, and a control calls the method that has the same name as the attribute value.
当你想去测试一个系统调用模块时,编写一个用户空间的程序来执行一个系统调用是种“正规”的方法。但首先要编写额外的程序,这是恼人的事情。怎样才可以执行一个系统调用而又不用编写用户空间的程序呢?
While writing a user space program to execute a system call is the "proper" way to do it, when you just want to test a system call module, it's annoying to have to write an additional program first.
当你想去测试一个系统调用模块时,编写一个用户空间的程序来执行一个系统调用是种“正规”的方法。但首先要编写额外的程序,这是恼人的事情。怎样才可以执行一个系统调用而又不用编写用户空间的程序呢?
While writing a user space program to execute a system call is the "proper" way to do it, when you just want to test a system call module, it's annoying to have to write an additional program first.
应用推荐