metaclass
推荐文章



n.
元类;
英英释义
Metaclass
In object-oriented programming, a metaclass is a class whose instances are classes. Just as an ordinary class defines the behavior of certain objects, a metaclass defines the behavior of certain classes and their instances.
以上来源于:Wikipedia
权威例句
Metaclass compatibilityMetaclass compatibility
Safe metaclass programming
Reflections on metaclass programming in SOM
Reflections on metaclass programming in SOM
A Metaclass System for Open Object-Ori-ented Data Models
A role model and its metaclass implementation
A role model and its metaclass implementation
Materialization and its metaclass implementation
Materialization and Its Metaclass Implementation
1. Improved Select metaclass dialog (for creating metaclass extensions).
改进的选择元类对话框(为创建元类扩展标记)。
youdao
2. One or more entries for each metaclass extension of each stereotype.
每个固定模型的元类扩展有一个或者多个条目。
youdao
3. The main aspects in which a stereotype can modify the metaclass definition are
当一个原型可以修改元类的定义的主要影响是
youdao
4. Just select multiple items of the same metaclass, such as several attributes.
单单选择同一元类的多项,例如一些属性。
youdao
5. Concrete subtypes of the metaclass extension's EClass will automatically be added.
元类扩展的EClass的具体子类型将会自动被添加。
youdao
6. Many programmers are confused about the difference between a metaclass and a base class.
许多程序员会混淆元类和基类的不同。
youdao
7. The metatype conflict can be avoided by manually creating the needed metaclass for C
为C手工创建必需的元类,可以避免元型冲突
youdao
8. From comments to packages, including classes themselves, every concept in UML has a metaclass.
从注释到包,包括类本身,UML中的每个概念都有一个元类。
youdao
9. To summarize, the profile contains two stereotypes, a and B, which extend the metaclass class.
现在总结一下,概要文件包含有两个原型,a以及b,它扩展了元类Class。
youdao
10. Observe that if the metaclass extension was to an abstract EClass, it will not show in the list.
注意到如果这个元类扩展以前是一个抽象的EClass,它将不会显示在这个列表中。
youdao
11. If this is not your case, skip the metaclass and make your life (and that of your users) happier.
如果不属于这种情形,那就跳过元类,使您(和您的用户)的生活更加惬意。
youdao
12. Please note that the stereotype can be applied only to the elements whose metaclass it extends.
请注意原型仅仅可以被应用到元素下,当它的元类是扩展的。
youdao
13. Ability to create metaclass extensions through Project Explorer, not just in the Properties view.
通过使用项目浏览器可以创建元类扩展标记,而不仅仅是在属性视图。
youdao
14. As it turns out, lookup on a class follows its MRO before it looks in its instantiating metaclass.
当解析发生时,在查找实例化元类之前,会先遵循它的MRO对类进行查找。
youdao
15. If there is no icon defined in the profile, the icon corresponding to the metaclass extension will be used.
如果在这个配置文件中没有定义图标,这个对应元类扩展的图标就会被使用。
youdao
16. The predecessor to this article is Metaclass programming in Python, Part 1 (developerWorks, February 2003).
本文章的第1部分是Python中的元类编程,第 1 部分 (developerWorks 2003年2月)。
youdao
17. Properties of class type (including metaclass and stereotype associations) should have this option selected.
类的属性(包括元类和原型的关联)应该选择这个属性。
youdao
18. The metaclass will create the class (as a new style one) and will pass it to the class initializer procedure.
元类将创建此类(作为一个新式类)并将其传递给类初始化器过程。
youdao
19. For example, suppose that there is a stereotype s, which extends the metaclass Actor and has an attribute named attr1.
例如,假设存在一个原型s,它扩展了元类Actor并且有一个命名叫attr1的属性。
youdao
20. Contrary to popular belief, this is a job where most of the time you do not need and you do not want a custom metaclass.
跟流行的观点相反,这是一个在大多数时候都不需要而且不想要自定义元类的工作。
youdao
21. As well as being a class, Duke is an instance of the metaclass Nobility — attribute lookup proceeds as with any object.
Duke是一个类,也是元类Nobility的一个实例——属性的查找过程与其他对象一致。
youdao
22. Finally, you develop a feature model (expressed in UML metaclass diagrams) for the entire product line, as shown in Figure 3.
最后,您将为整个产品线开发一个功能模型(以uml元类关系图表示),如图3所示。
youdao
23. You could accomplish the above sort of job with a custom metaclass, attached to XO, but with behavior determined dynamically.
应该用一个附加到XO、行为是动态决定的自定义元类来完成上述工作。
youdao
24. In the following example, the MSG String instance has got a meta-class that we can access through the metaClass property.
在下面的例子中,字符串msg的实例有一个元类,我们可以通过metaClass属性访问该元类。
youdao
25. It demonstrates the actual details of the profile and shows each stereotype with its metaclass, using the extension notation.
它示范了概要文件的实际细节,并且利用扩展符号展示了带有元类的原型。
youdao
26. You can add a new extension by clicking the add extension button, which starts the Create Metaclass extension dialog shown in Figure 8.
您可以通过点击addExtension按键添加一个扩展,将会启动一个创建元类扩展对话框,如图8所示。
youdao
27. If you generate a metaclass association or a stereotype association, you need to generate the tooling or shape for the stereotyped ends.
如果您产生了一个元类联合或者一个固定模型联合,您需要为这个固定模式终端产生工具或者形状。
youdao
28. The outcome of the analysis phase is a metaclass model that describes candidate services, their role stereotypes, and their operations.
分析阶段的产物是一个元类模型,此模型描述候选服务、候选服务的角色构造型及其操作。
youdao
29. For every stereotype that you create, you must add a metaclass extension to the package in addition to any other desired metaclass extensions.
对于您所创建的每一个构造型,您必须对包和其他所有需要的元类扩展添加一个元类。
youdao
30. Stereotype owned attributes are added to the metaclass definition as its properties, for the element instance where the stereotype is applied.
Stereotype所拥有的属性被添加到元类定义作为元类的属性,在原型被定义的地方作为元素实例。
youdao
metaclass




