对于代码实例,您应该熟悉。
如果需要由客户端代码实例化类型,则不要使用嵌套类型。
Do not use nested types if they need to be instantiated by client code.
参见每一章节代码实例中的README. txt可以获取更多细节。
See the README.txt files in each chapter's code examples for more details.
清单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.
并用一个简短的代码实例回顾了如何消费Web服务,即JAX - rpc子集api。
I also reviewed how to consume Web services, the JAX-RPC subset API, with a short code example included.
以下描述的斜体词就是源代码实例化变量的名字(也见于代码清单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.
下面是一组代码实例,显示了如何处理userdefinedpushdownmethodsimpl类中的各种形式的返回值。
Below is a set of code examples that show how to handle various forms of the return value in the UserDefinedPushDownMethodsImpl class.
该脚本的第一行代码实例化了一个新的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.
在那些“模型是代码”所在的实例中,所有实践者不得不做的是确保他们拥有精确给定的模型。
In instances in which "the model is the code," all practitioners have to do is make sure they have accurately specified models.
这里再次涉及到了复杂实例的代码样本。
您可以使用此函数轻松地在PHP代码中创建实例声明。
This function allows you to easily create instance declarations from within your PHP code.
清单2中展示的代码片段使用实例值加载表单字段。
The code snippet shown in listing 2 loads the form fields with instance values.
清单3显示的代码片段根据流程实例ID获取事件处理程序。
Listing 3 shows the code snippet getting the event handler by a process instance ID.
接下来的部分将描述他们是如何运行的,并通过实例代码演示了一些特殊的设计点。
Their operation is described in the next sections followed by example code to illustrate particular design points.
实例代码将演示如何向您自己的应用程序中添加跟踪和记录功能。
The sample code illustrates how you can add trace and log to your own applications.
以上代码首先检查是否存在实例。
当工具包向导生长一个工程时,向导会为三个关键方法提供部分代码或实例代码,如表1 所示。
When the toolkit wizard creates a project, it provides stubs or sample code for three key methods, as shown in Table 1.
类型有两种“用户”:继承类型,以及使用类型实例的代码。
There are two kinds of “users” of a type: derived types and code that works with instances of the type.
清单4给出安装s3fs实例的代码。
同样,清单10中的代码允许验证以下实例。
Again, the code in Listing 10 allows the following instance to validate.
注意Objectify 的查询代码:service实例支持根据属性(在本例中是 owner)过滤,甚至对结果进行排序。
Notice Objectify's query code: the service instance supports filtering by property (in this case owner) and even ordering the results.
方法中试图打印appointment的代码创建 appointment实例并开始方法链接。
The code to try printing the appointment appears in the method that creates the appointment instance and starts the chain.
为了设定代码执行的上下文,self变量要设置为执行代码时所在的对象实例,以使得代码可以访问对象实例的变量。
In order to set the context, the variable self is set to the instance while the code is executing, giving the code access to the instance's variables.
为了设定代码执行的上下文,self变量要设置为执行代码时所在的对象实例,以使得代码可以访问对象实例的变量。
In order to set the context, the variable self is set to the instance while the code is executing, giving the code access to the instance's variables.
应用推荐