The code that is generated by this refactoring operation is modeled by the encapsulate field code snippets feature.
此重构操作生成的代码将由封装字段代码段功能来建模。
The code running on the workstation stores field values in this document that tell the agent what it should do, and the agent can write results to the same document.
运行在工作站上的代码在这个文档中存储值,这些值告诉代理应该做什么,并且代理能够将结果写到相同的文档中。
Custom code input values reside in references or field references.
定制代码输入值在引用或者字段引用中。
Back in Part 2, I showed how reflection is many times slower than direct code for both field access and method calls.
在第2部分,我展示了无论是对于字段访问还是方法调用,反射都比直接代码慢很多倍。
Reflection also suffers a performance disadvantage when compared to calling a method or accessing a field directly in compiled code.
与直接在已编译代码中调用方法或访问字段相比,反射在性能上也处于劣势。
Simply add the lines of code shown in Listing 4 to listen for changes to the ZIP code field.
如清单4所示,只需添加几行代码就可以侦听邮政区码字段的更改。
The following code example shows how to print the field values of all the documents in a view.
以下代码示例展示了如何在一个视图中输出所有文档的字段值。
Therefore, the code retrieves the content field and then creates a new one that is ready for indexing.
因此,此代码将检索内容字段,然后创建一个可供索引的新文档。
AOT code must therefore be generated with every static, field, class, and method reference unresolved.
AOT代码因此必须在没有解析每个静态、字段、类和方法引用的情况下生成。
Research in the field saw scientists reconstruct the genetic code of the woolly mammoth in 2008, and our Neanderthal Cousins earlier this year.
在该领域的研究中,科学家于2008年重建了披毛猛犸象的遗传密码,并在今年早些时候重建了早期智人尼安德特人的遗传密码。
The new 8-byte DIF field includes a cyclical redundancy code (CRC) to protect the data, a reference tag to protect against misdirected writes, and an application tag.
这个新的8字节dif字段包括一个循环冗余代码(CRC)用以保护数据,一个参考标签用以保护数据免遭误导写入,以及一个应用程序标签。
This program also demonstrates how static field initializers execute before the code inside an explicit type constructor.
此程序还演示了静态字段初始值设定项如何在显式类型构造函数中的代码之前执行。
As you saw earlier, the code for a static field initializer executes inside an implicit type constructor.
正如您在前面看到的那样,静态字段初始值设定项的代码在隐式类型构造函数的内部执行。
Subsequent executions, of course, will benefit from the result of patching the code so that the instance or static field, or method target, is more directly referenced.
当然,后续执行将从修补代码中获益,从而可以更直接地引用实例、静态字段或方法目标。
Listing 6 shows the code to create the Field component.
清单6显示了创建Field组件的代码。
This code allows the value property of the Field component to be bound to a backing bean.
这个代码允许Field组件的value属性绑定到后台bean。
You could mark the fields transient, but the class would still have to explicitly produce code to check whether a field was initialized every time a method accessed it.
可以将字段标记为transient,但是每当有方法访问一个字段时,类仍然必须显式地产生代码来检查它是否被初始化。
That class has, from the "employees" table somewhere in the database, the field "name" so the raw code to set the name would be as follows.
那个类来自于数据库中某处的“employees”表,具有“name”字段,因此设置其名字的原始代码可以如下所示。
Second, I need to change the Person code by adding a field and the appropriate property methods to track mood, as shown in Listing 4.
第二步,我需要更改person代码,添加一个字段和一些用于跟踪情绪的属性方法,如清单4所示。
There's not a lot of looking around, trying to find where the zip code field is or how to zoom in on a map.
用户无需做很多查找,比如查找zip代码字段在哪以及又该如何在地图上做缩放。
Listing 2 shows the equivalent code that will be generated for the firstName field.
清单2展示了为firstName字段生成的访问器代码。
Modify the _form.rhtml partial to "listen" for changes to the ZIP code field and make an Ajax call to the server.
修改 _form.rhtml 片段以“侦听”邮政区码字段的更改,并向服务器发出Ajax调用。
Enter the HTML code in listing 3 in the Footer field.
在Footer字段中输入清单3所示的HTML代码。
The user's cursor is still in the ZIP code field on the HTML form of the Web browser.
用户的指针仍在Web浏览器的Html表单的邮政区码字段中。
Enter the HTML code shown in listing 1 in the Header field.
在Header字段中输入清单1所示的HTML代码。
Enter the code shown in Listing 1 in the "Additional compiler arguments" field.
键入“Additionalcompilerterarguments”区域中列表1中显示的代码。
You type the name used to access the Web service in code in the Web reference name field in the Add Web reference dialog box.
在AddWebreference对话框的Web reference名字字段中键入在代码中访问Web服务所使用的名字。
The source code in biology are the publications and ideas of the field.
生物学的源代码包括出版物和这个领域上的思想。
In this text field, enter the following code from Listing 14.
在该文本区域中,输入以下代码清单14的代码。
If you want to avoid the exception, then the data must be truncated to fit the field and you must code additional logic to do the truncation.
如果您希望避免该异常,则必须将数据截断以适应该字段,并且必须编写附加的逻辑代码来处理截断。
应用推荐