转换类型可分为三类:方法调用转换、字段访问转换和新对象转换。
These fall into three categories: method call transformations, field access transformations, and a new object transformation.
在FieldSetEditor中,我实现了匹配字段访问的方法签名。
In FieldSetEditor, I implement the method signature that matches field accesses.
在第2部分,我展示了无论是对于字段访问还是方法调用,反射都比直接代码慢很多倍。
Back in Part 2, I showed how reflection is many times slower than direct code for both field access and method calls.
其中包括对字段访问或者方法调用使用拦截器,在现有类中添加mix - in接口实现等。
These include using interceptors on field accesses or method calls, adding mix-in interface implementations to existing classes, and more.
字段访问连接点对应着字段的读和写;在这个例子中,在Accoun t类上对name字段进行了赋值。
Field access join points correspond to reads and writes of fields; in this case, an assignment of the name field that is made on the Account class.
它给出了加载的每一个类的每一个方法中所做的工作的详细分析,列出了所有方法调用、字段访问和新对象创建。
This gives the detailed breakdown of what's being done within each method of each class loaded, listing all method calls, field accesses, and new object creations.
这些特性使得对程序行为做出系统性的变更很容易,其中包括诸如拦截所有方法调用或所有字段访问这样的变更。
These features make systematic changes to program behavior easy, including changes such as intercepting all calls to a method or all accesses of a field.
字段访问相对速度较快,但在少数时候,getter访问可能会提供与直接字段访问略有不同的值,特别是在涉及子类的时候。
Field access may be marginally faster, but rarely. Sometimes, getter access may provide a slightly different value from direct field access, especially when subclasses are in play.
如果客户机能够调用方法或访问字段,那么就测试它。
例如,在文档中,您可以在富文本中访问字段值和各个单独的段落。
For example, in documents, you can access field values and individual paragraphs within rich text.
本文提供了定制数据库过程的一步步的细节内容,并且包括一些如何对某些字段控制访问权限的钩子函数。
It provides step-by-step details on the procedure for customizing your database, and includes some hooks on how to control access rights to certain fields.
如果你没必要访问对象的字段,那么使你的方法成为静态方法。
If you don't need to access an object's fields, make your method static.
请注意您仍然可以访问字段名称使用表达式编辑器。
Note: You can still access the field names via the expression editor.
与直接在已编译代码中调用方法或访问字段相比,反射在性能上也处于劣势。
Reflection also suffers a performance disadvantage when compared to calling a method or accessing a field directly in compiled code.
直接访问该支持字段让很多事情变得都有可能。
Having direct access to the backing field should make more things possible.
决不应该直接访问字段;而应该使用访问器。
Fields should never be accessed directly; instead, accessors should be used.
可以按照表或者数据库定义以关系方式访问的字段。
You could define fields to be accessed relationally on a per-form or per-database basis.
访问静态字段与此类似。
如果类型图中的一个节点看起来过大,您可双击它,向下访问到字段布局视图(如图23所示)。
If a node in a type graph seems suspiciously large, you can double-click on it to drill down to the field layout view (Figure 23).
许多编程语言支持字段索引的概念,字段索引用于访问重复字段的特定实例。
Many programming languages support the concept of a field index for accessing a particular occurrence of a repeating field.
使用DHTML可以访问甚至修改表单字段的信息。
Using DHTML, you can access the information in a form field, or even change it.
因此,对于JNI 来说,本机代码从传递进来的对象中访问大量单独字段时会导致性能降低。
For JNI, therefore, causing the natives to reach for many individual fields from the objects passed to them leads to poorer performance.
对于那些由未解析变成已解析并被频繁访问的字段来说,这种简单的过程可能带来严重的性能问题。
For unresolved fields that become resolved and frequently accessed, this naive procedure can be a huge performance problem.
排序操作只能访问排序字段的值。
The sorting process only has to access the sort field's value.
这通常意味着代理需要是Person的一个内部类,以便能访问private字段。
Often this means the proxy will need to be an inner class of Person to have access to private fields.
看上去您是在直接访问字段,但是事实上您在调用后台的相应的getter方法。
It may look like you are directly accessing the field, but in reality you are calling the corresponding getter method behind the scenes.
首次使用ReaderNames字段时,尝试将需要访问文档的每个单独用户的名称填入该字段中。
When first using Reader names fields, it is tempting to put into the field the names of each individual user who needs to access the document.
对这个动态类我想做的最后一个改进,是用成员变量访问字段,而不是用笨重的get _和set _操作符。
One final improvement I want to make on this dynamic class is to use member variables to access the fields, instead of the clunky get_ and set_ operators.
把所有控件绑定到BindingSource对象之后,就可以在XAML代码中访问所有字段。
Once the code binds all controls to the BindingSource object, then all fields are accessible in the XAML part.
字段及其访问器声明之后,下面出现的是employee类的方法。
After the fields and their accessors are declared, the methods of the Employee class come next.
应用推荐