在生成的代码中添加方法。
有时候你可能想给一个命名元组添加方法。
You might decide later that you want to add methods to a named tuple.
添加方法、属性和事件。
什么是一类添加方法而不是“正确”子叫什么?
What is adding methods to a class instead of "properly" subclassing called?
在类型中添加方法。
在模拟对象里添加方法,使得您的测试正确地初始化。
Add methods to the mock object that allow you to initialize it properly for your tests.
开发人员经常有向某一语言内建类中添加方法的需求。
Programmers often need to add methods to classes that are part of the language runtime itself.
第二种添加方法是从项目视图中将它们拖到列表中。
The second way to add scene files is to drag them from the Project View to the list.
您可以使用本文介绍的任何(或所有)技巧来向任意数量的类添加方法。
You can use any (or all) of the techniques outlined in this article to add methods easily to one, some, or all of the classes you want.
现在,我们要添加方法,这个方法会将这个列表设置成一个横行。
Now, we need to add the technique that will set this list into a horizontal line.
然后,您就能够为这些目标添加方法,作为相应的类属性,并且将它们模板化为。
You can then add the measures for the goals as attributes of the corresponding classes, and stereotype them as.
当给类添加方法时,字节码框架的调用句柄接所收到了他们预期之外的合成方法调用。
When adding methods to classes the invocation handlers of the bytecode frameworks received synthetic method calls that they didn't expect.
利用强制方式动态自定义类行为最简单的方法是:首先创建类,然后添加方法和属性。
The easiest way to dynamically customize class behavior USES an imperative style: first create the class, then add methods and attributes.
并对减水剂作用机理及添加方法、颗粒级配作用和粉煤灰作用进行了讨论。
It also talks about the mechanism of superplastic, the way of adding and the role of fly ash and particles distribution.
酒花加量、添加方法、煮沸强度对啤酒胶体稳定性及泡沫质量均有明显影响。
Addition level, addition method, and boiling intensity of hops had evident effects on both colloid stability and foam quality.
实验确定了枸杞汁的添加量和添加方法,并讨论了枸杞汁对啤酒质量的影响。
From experiment, the additional quantity and method was obtained, and discussed the affect of Chinese wolfberry for beer quality.
在代码块中,delegate关键字指向您将要向其中添加方法的类的实例。
Within the code block, the delegate keyword refers to the instance of the class you are adding methods to.
提出了DCT变换域上基于人类视觉特性(HVS)的两种盲水印添加方法。
Two blind watermark algorithms based on HVS in DCT domain are proposed.
JiBX使用字节码增强向编译后的类添加方法,以便在类的实例与XML之间进行转换。
JiBX USES bytecode enhancement to add methods to compiled classes that convert instances of the classes to and from XML.
于是就有了这样可笑的事:在我们能够添加方法到类中的时候,这种“简单的检查”是不够的。
Here's the punchline: the moment we can add methods to classes this "simple check" is not enough.
在JAXP中添加方法调用这些新功能(就是他们的大多数API)也是完全可行的。
It certainly would still be possible to add JAXP methods that called into that new functionality (that's what most of their API is).
向Integer添加方法允许您创建更具表达性的代码,因为您可以使用真实的数字表示数值。
Adding methods to Integer allows you to create much more expressive code because you can use real Numbers to represent numeric values.
本文详细阐述了大豆蛋白的营养价值和功能特性,指出了它在肉制品中的添加方法和应用要点。
The nutritional value and functional properties of soya protein are detailed. Also, the adding ways and points for application of soya proteins into meat products are cleared.
通过对面粉增白剂作用原理和增白效果影响因素的分析,提出面粉增白剂的合理用量及添加方法。
The acting principle of flour brightener and the effective factors of brightening effect were analysed. The reasonable addition level of brightener and adding methods were put forward.
我们使用扩展的添加方法,这样就能侦听服务器,即使它当前已停止(在此种情况下,MBean还未被激活)。
We use the extended add method so that we can listen to a server even if it is currently stopped (in which case the MBean is not yet activated).
现在,我们要添加方法,这个方法会将这个列表设置成一个横行。我们需要给列表项目添加一个样式参考。
Now, we need to add the technique that will set this list into a horizontal line. We need to add a style reference to the list item itself.
该文对仙人掌汁的制备,仙人掌汁的添加量、添加方法和时间等工艺参数的优化设计,及纯生啤酒酿造进行了探讨。
This paper discussed the cactus juice preparation and draft beer brewing method, and optimized the juice addition amount, time and method, and other processing parameters.
在清单2中,我声明了一个单独的静态方法,接收String参数(通常称为self,但是您可以随意为其命名),代表我向其中添加方法的类。
In Listing 2, I declare a single static method that accepts a String parameter (traditionally called self, but you can call it whatever you like) that represents the class I'm adding the method to.
在清单2中,我声明了一个单独的静态方法,接收String参数(通常称为self,但是您可以随意为其命名),代表我向其中添加方法的类。
In Listing 2, I declare a single static method that accepts a String parameter (traditionally called self, but you can call it whatever you like) that represents the class I'm adding the method to.
应用推荐