清单12中的代码实例化了purchaseorder类的两个对象。
The code in Listing 12 instantiates two objects of the PurchaseOrder class.
反射代码比相应的直接代码更复杂,正如性能比较的代码实例中看到的一样。
Reflection code is also more complex than the corresponding direct code, as can be seen in the code samples from the performance comparisons.
清单3显示了创建WSRelationalPushDownHelper的代码实例。
Listing 3 shows a code example that creates a WSRelationalPushDownHelper.
以下描述的斜体词就是源代码实例化变量的名字(也见于代码清单5、6、7和8)。
The words in italics in the following descriptions are the names of instantiated variables in the source code (also see Listings 5, 6, 7, and 8, which follow).
清单9中的代码实例化一个Python桌面应用程序,然后通过调用run方法启动桌面。
The code in Listing 9 instantiates a Python desktop application and then starts the desktop by calling the run method.
该脚本的第一行代码实例化了一个新的Sql对象:设置JDBC连接字符串、用户名、密码和 JDBC驱动器类。
The first line of this script instantiates a new Sql object by setting the JDBC connection string, username, password, and JDBC driver class.
下面的代码实例显示的是如何编写一个可以从一个选定的RationalSoftware Architect模型中获取所有图然后将它们储存在项目里的宏。
The following code example shows how to write a macro that can extract all diagrams from a selected Rational Software Architect model, and then store them in a project.
清单2中展示的代码片段使用实例值加载表单字段。
The code snippet shown in listing 2 loads the form fields with instance values.
注意Objectify 的查询代码:service实例支持根据属性(在本例中是 owner)过滤,甚至对结果进行排序。
Notice Objectify's query code: the service instance supports filtering by property (in this case owner) and even ordering the results.
清单4给出安装s3fs实例的代码。
清单3显示的代码片段根据流程实例ID获取事件处理程序。
Listing 3 shows the code snippet getting the event handler by a process instance ID.
同样,清单10中的代码允许验证以下实例。
Again, the code in Listing 10 allows the following instance to validate.
类型有两种“用户”:继承类型,以及使用类型实例的代码。
There are two kinds of “users” of a type: derived types and code that works with instances of the type.
接下来的部分将描述他们是如何运行的,并通过实例代码演示了一些特殊的设计点。
Their operation is described in the next sections followed by example code to illustrate particular design points.
更有可能是其他用于创建类实例的代码导致了过度的内存占用。
Most likely, other code is responsible for creating instances of the classes that have caused the extensive memory usage.
如前所述,代码将使用ScriptEngine实例执行脚本。
As I mentioned, your code USES a ScriptEngine instance to execute your scripts.
清单6显示了将XML消息反系列化到Product实例的代码。
Listing 6 shows the code to deserialize the XML message into a Product instance.
下面的代码段展示如何创建ECSEmitter实例
The code snippet below shows how to create an ECSEmitter instance
使用清单11所示的代码获取这个类的新实例。
You obtain a new instance of this class by using the code shown in Listing 11.
最后一个操作步骤是要在portlet代码中创建ClaimContentAdapter实例,然后对其进行测试。
The final step is to create an instance of the ClaimContentAdapter in the portlet code and test it.
JiBX读取绑定定义文件以控制它添加到您类中的代码如何在实例和XML之间进行相互转换。
JiBX reads a binding definition file to control how the code it adds to your classes converts instances to and from XML.
当头文件和实现文件准备好之后,您可以用清单7中的代码创建一个实例。
When the header file and the implementation file are ready, you can create an instance with the code in Listing 7.
清单2显示的是使用BusinessFlowManagerAPI获取流程实例ID的代码片段。
Listing 2 shows the code snippet to get the process instance ID using the Business Flow Manager API.
清单7中的代码将DojoList(列表对象)的实例编组成JSON。
The code in Listing 7 marshals the instance of DojoList (list object) into JSON.
不用惊讶,run方法包含我编写的、用来创建这些对象的新实例的代码,而main方法则调用run方法。
Not surprisingly, the run method contains the code I wrote to create new instances of those objects and the main method calls the run method.
特别是,VisualStudio提供创建ComponentResourceManager实例的代码,这会加载正确的资源集,并分配所有必要的控件值。
In particular, Visual Studio supplies the code to create an instance of the ComponentResourceManager, which loads the proper set of resources and assigns all the necessary control values.
在表4中所示的实例中,相同的代码用于识别分析模型中要进行转换的单元。
In the example shown in Table 4, the same code is used to identify elements in the analysis model that should have been transformed.
以下的代码例子展示如何用这种方法创建CBE实例。
The following code sample shows how to create a CBE instance using this method.
所以您可以自行决定是否希望在代码中创建和使用Executor实例。
So you are on your own if you want to create and use Executor instances throughout your code.
避免将所有代码与横切关注点类的特殊实例联系起来。
Avoided tying all code to particular instances of cross-cutting concern classes.
应用推荐