还记得这个代码的工作方式吗,属性的显示名就是键值。
Remember the way this code works, the display name of the property is the key.
如果日志文件中包含有什么条目,那么代码就会创建基于场景名的文本文件,浏览日志文件,并将条目写入到文本文件中。
If the log file contains any entries, the code creates a text file based on the scenario name and, scans the log file, and writes the entries to that text file.
这个事实清楚地证明:长期项目需要那些拥有良好变量名和干净设计的清晰代码。
This speaks volumes about the need for clear code with good variable names and clean design on a long-term project.
因此,您必须使用这个引用名,除非您对代码作相应的修改。
Therefore, you have to follow this reference name unless you make the corrresponding changes in the code.
通用性:由于不需要列出所有可能的元素名,使代码更加通用,可以包含可能出现在实例文档中的不同特性元素的变体。
Generality: Without having to list all possible element names, the code is general enough to encompass the variation of different feature elements that might appear in instance documents.
该程序将数组节点转换为说明性更强的变量名,从而使代码更易于阅读。
The program transfers the array nodes into more descriptive variable names, making the code easier to follow.
为确保这个脚本不能用于访问数据库中的任何表,代码首先检查被请求的表名。
To ensure that the script can't be used to access any table in the database, the code first checks the table name requested.
如果希望使用自己的XML文档也完全可以,只要调整示例代码和文档的结构与逻辑名匹配即可。
If you want to use your own XML documents, feel free; you just need to adjust the sample code to match the structure and logical names in your own document.
当输入类名时,PDT也会弹出代码补全窗口。
PDT will also pop up a code completion window while you key class names.
代码输出的是一个包含同等服务名的数组。
The output of this code is a list as an array of equivalent names of the service.
尽管这是相同代码中的相同变量名,不过num这次不同了。
Even though it is the same variable name in the same code, num is different this time.
虽然Google今天发布了Chrome系统的源代码,但一名首席工程师伊詹亚伯拉罕表示,完整的系统大约会在“约一年后的今天”问世。
Google released Chrome OS 'source code today, but one of Chrome's lead engineers, Idan Avraham, said a finished Chrome OS arrives "about a year from today."
我在代码示例中使用ext作为路径名来防止版本冲突(参阅下载,访问本文示例源代码)。
I will refer to the directory in my code examples as ext to prevent inconsistency between versions (see Downloads to access the source code for the examples in this article).
prefix参数被用作在已生成的代码内部的变量名的前缀。
The prefix argument is used as a prefix for the variable names inside the generated code.
清单2中的ZUL代码使用其默认名helloworld访问HelloWorldbean。
The ZUL code in Listing 2 accesses the helloWorld bean using its defaulted el name, helloWorld.
在集成这些代码时,最主要的问题之一就是这些代码可能无法恰当地融合到已有代码中;函数或类名可能与应用程序中已经在使用的内容冲。
One of the biggest problems when integrating this code is that it may not mix very well with existing code; function or class names may clash with what we are using already in our application.
不要认为自己必须是一名本机代码或JNI专家,或者必须知道每个操作系统。
Don't think that you need to be an expert in native code or JNI or must know every OS.
对于本文,我们要解析的“语言”是“智能ASCII”所使用的一组标记代码,这些代码用来表示诸如黑体、模块名以及书籍标题之类的内容。
For this article, the "language" we will parse is the set of markup codes used by "smart ASCII" to indicate things like boldface, module names, and book titles.
比如说代码文件名不一定要和类型名完全匹配,而且包的结构也不必完全匹配实际的目录结构。
Just as file names don't have to match the type names, the package structure does not have to match the directory structure.
为此,需要添加代码来处理上传,解析文件名,以及创建与上述模式相匹配的目录路径。
To do so, you need to add code to handle the upload, parse the file name, and create the directory paths to match the scheme above.
如果您想调用的代码已经存在,则只需改变类名以与它的名称匹配。
If the code that you want to call already exists, just change the class name to match its name.
该代码从对话框中获得订阅名、要使用的队列管理器以及要发送消息的队列名。
The code gets the subscription name, the queue manager to use, and the queue name to send the message from the dialog.
资源引用名:资源引用的名称,是代码部分用来识别资源之用。
Resource reference name: the name for the resource reference that the code component uses to identify the resource.
堆转储不包含变量名、值或源代码等信息。
Heap dumps do not contain information like variable names, values or source code.
执行清单11中的代码并检查几个文件名,会产生清单12所示的输出。
Executing the code in Listing 11 and checking a few file names produces the output shown in Listing 12.
确认代码中的包名、类名以及类构造函数名都已改为与项目名一致。
Be sure to change the package, class, and constructor names in the Java code to match the project name.
或者,也可能是他们使用竞争对手的表名来编写自己的代码,可你觉得这可能吗?
Either that, or they decided to write their own code using the names of their competitor for the table names. Which are you inclined to believe?
或者,也可能是他们使用竞争对手的表名来编写自己的代码,可你觉得这可能吗?
Either that, or they decided to write their own code using the names of their competitor for the table names. Which are you inclined to believe?
应用推荐