清单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.
您可以使用此函数轻松地在PHP代码中创建实例声明。
This function allows you to easily create instance declarations from within your PHP code.
以上代码首先检查是否存在实例。
注意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.
如前所述,代码将使用ScriptEngine实例执行脚本。
As I mentioned, your code USES a ScriptEngine instance to execute your scripts.
更有可能是其他用于创建类实例的代码导致了过度的内存占用。
Most likely, other code is responsible for creating instances of the classes that have caused the extensive memory usage.
图1:python代码的两个实例。
清单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
该实例包含状态代码,而且也可能包含Header和正文。
The instance contains the status code, and may also contain headers and a body.
代码样本1 -启动业务流程实例。
要检索流程输入消息的空实例,请使用下面的代码。
To retrieve an empty instance of a process input message use this code.
使用清单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.
应用推荐