Listing 19 shows you how this works — it's not as complex as it is a lot of work, so I'll let you walk through this code on your own.
清单19演示了如何做,虽然需要做很多工作,但是并不复杂,所以我把代码留给您自己来看。
To perform a code review on all of these files, you need to iterate through this list.
为了对所有这些文件进行代码复查,您需要通过该列表进行重复。
With the code demonstrated here, you can apply this next level of navigational system to any application through the use of synthetic keyboard and mouse events.
使用本文演示的代码,您将可以通过合成的键盘和鼠标事件将这种新一代导航系统应用到任何应用程序。
This way, the code can leave the resource management to the container and yet easily access a resource through its name.
以此方式,代码可以脱离容器的资源管理而仍然可以轻易的通过资源的名称访问资源。
This pattern encapsulates code for accessing components through directory services, such as JNDI client code, so that a client can simply pass in the name of a resource and get back that resource.
这个模式通过目录服务封装访问组件的代码,如JNDI客户端代码之类,因此客户端可以简单的以资源名通过验证并返回这个资源。
Typically, developers handle this process through a bunch of assignment code, as shown in Listing 1.
通常,开发人员通过一系列赋值代码来处理此过程,如清单1 所示。
This is accomplished through “activation code” included within the image that reads input parameters, maps these parameters to different pre-configured profiles, and performs reconfiguration.
这是通过映像内包含的 “激活代码”实现的,它可以读取输入参数、将这些参数映射到不同的预配置的配置文件并进行重新配置。
Through a compilation process, this high-level code is compiled into an intermediate representation called object code.
通过一个编译过程,该高级代码被编译成一个名为对象代码 的中间表示。
By accessing memory through well-defined paths, the runtimes or in this case, kernels can verify that code is not accessing memory locations to which it should not have access.
通过定义好的路径——在当前情况下是运行时——访问内存,核心可以验证代码并没有访问不该访问的内存位置。
This technique allows people to make necessary changes to a piece of code without going through the bottleneck of an individual code owner.
这种技术可以让人们对代码片段进行必要的更改而不用经过各个代码拥有者个人的瓶颈。
You have just walked through the sample code, and from this code you have made a very useful translation service.
我们讨论了示例代码,并以此为基础开发了一个非常有用的翻译服务。
In this example, the code block is iterated until the loop is broken through the condition.
在此示例中,代码块迭代,直至循环根据条件而中断。
Before you can run this article's example code, you'll need to go through the initial setup required to run anything associated with the WSDK or the WSTK.
在运行这篇文章的示例代码之前,您将需要进行必须的初始安装才能运行任何与wsdk或wstk相关的代码。
If you are concerned about this type of attack, which is easily prevented through code inspections, you can prevent untrusted clients from connecting to the Web container.
如果您担心这种类型的攻击(可以通过代码检查轻松地加以防止),则可以阻止任何不受信任的客户端连接到web容器。
This code iterates through each resource and creates an instance of the CodeReviewResource class (the C++ parser) that you created previously.
该代码通过每个资源进行遍历,并创建了您在前面创建的类CodeReviewResource (C++剖析器)的一个实例。
This is code that traditionally runs on application servers, primarily accessed through Web services.
这些代码通常在应用程序服务器上运行,主要通过Web服务访问。
In addition to that, Google has indirectly funded development the this summer and last summer through its summer of Code program.
除了这些,Google还通过它的夏日代码计划(Summerof Code program)在去年和今年的夏天间接地赞助了开发。
View code interacts with Swing components through this object. To change the content of the flash-card text pane, for example, you could write
视图代码通过这个对象与Swing组件交互。
If the application you are testing ever changes, you have to sort through all this code (and all the code in all the other scripts you use to test it) to find and fix problems.
如果您正在测试的应用程序曾经发生变化,您必须将所有这些代码(以及您用来进行测试的所有其它脚本中的代码)进行排序,以发现和修复问题。
When you read through this section, it will be very helpful if you have the code in front of you, so you can reference it as it gets discussed.
当您阅读本节的时候,如果眼前就有代码,那将是非常有帮助的,在讨论到它的时候就有代码可以参考。
Authorization checking performed in this way will be somewhat slower than inline code, particularly when invoked through a separate process.
以这种方式执行的授权检查将比内联代码慢一点,尤其是在通过单独的进程来调用的时候。
This makes the whole picture comes into focus: Traceability, from requirement through model to code (Figure 31).
这使整个图片集中到一点:跟踪性,从请求到模型,到代码(参见图31)。
And it's through this automation that low-level source code details like coding standards, complexity, and duplication (to name a few) become the responsibility of a machine.
通过使用这种自动化,一些低级的源代码细节(如编码标准、复杂性和重复程度等)的处理成为了机器的职责。
Early versions of the binding compiler did not go through this step of constructing a code generation model, instead generating code directly from the binding.
绑定编译器的早期版本不经历构造代码生成模型这一步,而是直接从绑定生成代码。
As the article steps through the lines in this script file, you can either follow along with the code shown in Listing 1 or open the script file in your favorite text editor.
因为本文将逐步介绍该脚本文件中的代码行,所以您既可以参照清单1所示的代码,也可以用您偏爱的文本编辑器打开该脚本文件。
The EMF lets us generate a code that will use to create model instances, which we carry through to this generation.
EMF让我们生成了一个代码,您可以使用该代码来创建模型实例,我们可以使用它来完成生成操作。
This is important, because the first thing the code does is search through the page for swappable elements.
这一点很重要,因为此代码的第一项功能就是在整个页面内搜索可切换的元素。
We will now take you through all the configuration and code you will need to set this up on your own machine.
现在,我们将演示您需要在自己的计算机上设置的所有配置和代码。
Although it's effective, this rigid process requires three to six participants and hours of painful meetings paging through code printouts in exquisite detail.
尽管它很有效,但是严格的过程需要三到六个参与者,并进行一系列繁琐的会议以讨论具体的细节。
Although it's effective, this rigid process requires three to six participants and hours of painful meetings paging through code printouts in exquisite detail.
尽管它很有效,但是严格的过程需要三到六个参与者,并进行一系列繁琐的会议以讨论具体的细节。
应用推荐