这里是使用这些概念的另一个代码示例。
这个例子显示了一个内部方法,并假设另一个代码段识别了分发器对象。
This example shows an internal method and assumes some other piece of code has identified the dispenser object.
复制就意味着耦合,因为改变一条复制的代码意味着改变另一个代码。
Duplication always implies coupling, because changing one piece of duplicate code implies changing the other.
在下面的步骤中,您要创建另一个代码片断活动,以创建输出文件的文件名。
In the next steps, you create another snippet activity to create the file name for the output file.
仅仅在一个类上运行数据结构分析引擎代码,不那么有趣,因为结果只是代表另一个数据结构的数据结构。
Simply running the data structure analysis engine code on a class isn't all that much fun because the result is just one data structure representing another data structure.
因此,要想从一个对象转换成另一个对象,可以使用清单1所示的代码。
Therefore, to make the translation from one Object to another, you can use the code shown in listing 1.
将现有的资源从一个消息流拖放到另一个消息流的功能扩展了重用代码的能力。
The ability to drag and drop an existing resource from one message flow into another extends the ability to reuse code.
一个是“公共的”补丁,包含了对通用内核代码的更改,另一个是特定于体系结构的补丁。
One is the "common" patch that contains the changes for the generic kernel code, and the other is the architecture-specific patch.
从一个uml模型或代码模型中“收获”材料,并且将其“精确地粘贴”到另一个uml模型中。
"Harvest" material from one UML model or code model, and "smart paste" it into another UML model.
下面是一个有关如何在另一个Portlet的JS p页中使用三个C2A操作的代码示例?
Here is a code example on how to use the three C2A actions in another portlet's JSP page.
在这个例子中,我期望groovyc创建至少两个.class文件——一个用于song类,另一个用于Song声明之后的脚本代码。
In this case, I expect groovyc would create at least two.class files — one for my Song class and another for the script code following Song's declaration.
这阻塞了主线程但是在另一个线程上执行代码。
This blocks the main thread but executes the code on another thread.
另一个情况是客户端代码能在等待被调用服务完成的同时能干些别的事情。
Another case is where the client code could be doing other things while it waits for the called service to complete.
我写作的另一个目的是将编程代码向公众域公布。
Another purpose of my writing is to release programming code to the public domain.
在你所使用的开发工具的需求,和另一个群件编写代码的需求以及和另一个群件运行测试的需求之间跟毫无联系。
There was no connection between the requirements that you created with one of the suite tools, the code you wrote with another, and the tests you ran with yet another.
例如,一个软件供应商可能根据合同,需要为另一个组织提供代码。
For example, a software supplier may provide code on a contract basis to another organization.
当一个方法只被另一个方法调用一次,并且作为一个代码块更有意义时。
When a method is called only once by another method, and it makes more sense as a block of code.
另一个可产生快速执行代码的方法就是直接产生JVM字节码。
Another way to get fast executing code is to generate the JVM bytecode directly.
另一个有趣的区别是连接支持的代码。
The other interesting difference is the code for connection support.
在最近的一个迁移工程中,客户机上有一个大量地违背EJB规范的庞大的代码库,而另一个应用服务器应用服务器允许这些对规范的违背。
On a recent migration project, the client had a huge code base that took advantage of a number of violations of the EJB specification that the other application server happened to permit.
除了表面上的差别,还有一些更深层的区别,包括在BCEL中组件的两个不同层次结构的使用——一个用于检查现有的代码,另一个用于创建新代码。
There are some deeper differences under the covers, including the use of two separate hierarchies of components within BCEL — one for inspecting existing code and the other for creating new code.
本系列的第1部分包含一个代码样例,展示了如何用内存中的另一个文档替换永久xml文档。
Part 1 of this article series included a code sample that showed how to replace a persistent XML document with another document held in memory.
有两种实现智能标记的方法,前种实现的功能和实现方法都很简单,而另一个则需要编写代码,但提供的功能也更为灵活。
Smart tags can be built via two means, one that offers less power but is far simpler, the other involving much more code and development time but provides much more flexibility.
然后再问自己另一个问题:写全新的代码容易还是对现有代码进行修改容易?
Then ask yourself another question: is it easier to write all new code or to make changes to existing code?
它的另一个优点是无需修改初始源代码,并且其对环境的配置更改也可能最少。
It also has the virtue of not requiring any modification to the original source code, and potentially minimal configuration change to the environment.
开发周期中的构建规程的另一个方面是了解和测量代码库中隐藏的许多度量。
Another aspect of building discipline within the development cycle is to understand and measure many of the metrics hidden within your code base.
这种代码生成技术还有另一个用途:模式迁移。
This code-generation technique also serves another purpose: schema migration.
我们需要一个可移植的、跨平台、跨系统架构的编译器系统,这样我们可以在一个OS或者系统架构上开发代码,在另一个上面进行部署而无需重新编译。
We needed a portable cross-platform, architecture compiler system that would allow us to develop code on one OS or architecture and deploy it on another with out recompiling.
另一个问题就是所有代码必须遵循这种风格,因此如果在应用程序中集成了不遵循这种命名约定的第三方代码后,问题就复杂了。
Another issue is that all code must conform to this style, which can be difficult if you're integrating third-party code within an application that doesn't conform to this naming convention.
另一个问题就是所有代码必须遵循这种风格,因此如果在应用程序中集成了不遵循这种命名约定的第三方代码后,问题就复杂了。
Another issue is that all code must conform to this style, which can be difficult if you're integrating third-party code within an application that doesn't conform to this naming convention.
应用推荐