This method starts to show some of the flexibility possible with reflection.
这种方法开始展示了反射带来的某些灵活性。
Reflection also suffers a performance disadvantage when compared to calling a method or accessing a field directly in compiled code.
与直接在已编译代码中调用方法或访问字段相比,反射在性能上也处于劣势。
The latest versions of this framework are moving away from the convention/reflection method to an external configuration that maps user-visible attributes and operations to the code elements.
这个框架的最新版本正在将约定/反映方法转变为外部配置,通过外部配置将用户可见的属性和操作映射为代码元素。
Back in Part 2, I showed how reflection is many times slower than direct code for both field access and method calls.
在第2部分,我展示了无论是对于字段访问还是方法调用,反射都比直接代码慢很多倍。
The test performance for reflection method calls with arguments are substantially slower than the calls with no arguments on all JVMs.
在所有JVM上,使用参数的反射方法调用的测试性能慢于不使用参数的调用。
In order to not require that a component be a certain type, reflection is used to find and invoke the available method.
为了不要求组件必须是某种特定类型,用反射来发现和调用可用的方法。
I also wrote a similar timing test program for creating objects using reflection. The differences for this case aren't nearly as significant as for the field and method call cases, though.
我还为创建使用反射的对象编写了类似的计时测试程序,但这种情况下的差异不象字段和方法调用情况下那么显著。
At runtime, the superclass's methods will be invoked by requests from our client code, and the superclass will use reflection to invoke the actual method requested by the client.
运行时,客户机代码的请求将调用超类的方法,而超类将使用反射调用客户机请求的实际方法。
The IBM JVM does somewhat better by comparison, but the reflection method still takes more than 700 times as long as the other methods.
通过比较,IBMJVM可能稍好一些,但反射方法仍旧需要比其它方法长700倍以上的时间。
The Class reflection calls to access method information are very similar to those used for constructors and fields.
获得方法信息的Class反射调用与用于构造函数和字段的调用非常类似。
The other side effect is that because the invocation of print is done indirectly through reflection, the method must be public (and accept no arguments).
另一个副作用是由于对print的调用是通过反射间接进行的,所以这个方法必须是公共的(并且不接受参数)。
Listing 3 shows an example of using the field reflection methods, in the form of a method to increment an int field of an object by name.
清单3显示使用字段反射方法的一个实例,以方法的格式根据名称增加对象的int字段。
After you create and run the kernel, invoking a method on a POJO service simply becomes an exercise in using the Geronimo kernel server and its reflection capabilities, as shown in Listing 4.
创建并运行内核后,调用POJO服务上的方法就变成了练习使用Geronimo内核服务器及其反射功能,如清单4所示。
Reflection performance was one area of focus for Sun when developing the 1.4 JVM, which shows in the reflection method call results. The Sun 1.4.1.
反射性能是Sun开发1.4JVM时关注的一个方面,它在反射方法调用结果中显示。
Disassembly cannot be displayed for the source location. Uncaught exception thrown by method called through Reflection.
拆卸不能为源位置显示。未捕获异常的方法称为通过反射扔。
Criticism and reflection is the necessary approach and method of research, so is the research on western legal thoughts.
但是批判和反思是研究的必经途径和必要的方法,西方法律思想史研究亦然。
For middle school mathematics teaching method combining the number of reflection and prospect.
对中学数学教学中数形结合思想方法的反思与展望。
A reflection display method of rainbow holograms is discussed.
本文讨论了彩虹全息的反射显示方法。
The equations of caustic curve and its initial curve for a crack illuminated by an oblique incident light beam in reflection arrangement were deduced using the space analytic geometry method.
本文用空间解析几何方法,推导了在一般非平行斜入射光条件下,裂纹体表面所形成的反射焦散线和初始曲线的方程。
System availability is the comprehensive reflection of reliability and maintainability. The system availability calculation formula cannot be derived by common Markov method.
系统可用度是可靠性和维修性的综合反映,常用的马尔可夫方法无法给出可修复机电产品的系统可用度计算公式。
Deep reflection seismic method is characterized by high resolution ratio, accuracy and reliability, and is hence an effective technique for geoscience research.
深反射地震方法分辨率高、准确可靠,是用于地学研究的一种有效方法技术。
Because of its accuracy in outlining the Earth's subsurface, the seismic-reflection method remains the most important tool in the search for petroleum reserves.
文章首句指出:“由于‘地震反射法’(sr)在勾划地球的地下层面这方面的准确性,该方法一直是探寻石油储备的最重要的工具。” 这是一个判断句,为结论。
The paper introduced a method that can locate the position of cable breaking point by using the reflection of low pressure impulse, and set up a control system through 89c52.
介绍了一种利用低压脉冲反射法测定电缆断点位置的方法,并采用89c52单片机建立了控制系统。
It is indicated that the correlation coefficient, which is used as a discriminating factor in the method, is only the reflection of the structure character of the echoes tracked.
结果表明,在该方法中作为判别因子的相关系数反映了所跟踪回波的结构特征。
This paper presents a reflection-based analysis and design method for non-functional feature which uses reflection to separate functional and non-functional feature.
文章提出了一种基于反射的非功能特性分析设计方法,该方法利用反射思想分离功能特性和非功能特性。
A coaxial transmission and reflection method can be used to measure microwave permittivity of high-loss material.
同轴传输反射方法可以用来测量高损耗材料的微波介电常数。
A coaxial transmission and reflection method can be used to measure microwave permittivity of high-loss material.
同轴传输反射方法可以用来测量高损耗材料的微波介电常数。
应用推荐