polymorphic
adj. [生物] 多态的;[生物] 多形的;多形态的;[化学] 多晶形的(等于 polymorphous)
2025-11-01 09:51 浏览次数 10
adj. [生物] 多态的;[生物] 多形的;多形态的;[化学] 多晶形的(等于 polymorphous)
"polymorphous crystallization"
"a polymorphic species"
"man is both polymorpphic and polytypic"
"a polymorphous god"
polymorphic change多形性变化
polymorphic threats年变种威胁
Polymorphic Entity多态实体
pleomorphic[晶体] 多形的;多晶的
polymorphic functions多态函数
polymorphic type多态类型
polymorphic equilibrium多态均衡
polymorphic substance多晶形物
polymorphic abstraction多态抽象
Polymorphic Factory多态性工厂
this type will be used later to dispatch polymorphic behavior.
稍后,我们将利用这种类型来分派多态行为。
listing 17 result of execution of polymorphic facebook user record test with extended definition and json encoding
清单17 应用json编码多态facebook用户记录对扩展定义测试的执行结果
activerecord has a feature called polymorphic associations that is ideal for attaching common behavior to a class without inheritance.
activerecord具有一种称为多态关联的特性,非常适合将通用行为附加给类,完全无需继承。
after all, the ability to add such polymorphic methods is one of the key advantages of an object-oriented language.
毕竟,添加这种多态方法的能力是面向对象语言的关键优势之一。
with this two definitions in place a polymorphic record can be defined as follows
有了以上两个定义一个多态记录可以定义如下
exactly one table is required. a polymorphic query generates sql like
只需要一张表,一条多态查询生成的sql大概是这样的
probing of overloaded and polymorphic functions is not supported.
不支持探测重载和多态的函数。
why don「t we issue a command to the compiler like 「statically forbid polymorphic recursion.」
为什么我们不向编译器发出类似「静态禁止多态递归」这样的命令呢?
statically forbid polymorphic recursion.
静态禁止多态递归。
i think this symmetry in polymorphic dispatch on multiple arguments is much more elegant than is the prior style.
我认为对多个参数进行多态分派所具有的这种对称性比先前的样式要雅致得多。
listing 16 result of execution of polymorphic facebook user record test with extended definition
清单16多态facebook用户记录对扩展定义测试的执行结果
but assuming the types are okay, the code path is chosen first by a polymorphic dispatch, and second by procedural switch.
但是假定类型没问题,那么代码路径首先由多态分派选中,其次由过程切换选中。
hence, the code in the first case statement invokes a polymorphic operation.
所以,在第一个case 块中的代码执行了一个多态操作。
just like static detection of bad generic constructor calls, forbidding polymorphic recursion conflicts with incremental class compilation.
就象静态检测糟糕的泛型构造函数调用一样,禁止多态递归会与递增式类编译发生沖突。
here」s an example involving polymorphic recursion across two classes
下面的示例涉及两个类之间的多态递归
in this prototype implementation, we have employed a modified class loader to support polymorphic recursion.
在该原型实现中,我们使用了一个修改的类装入器来支持多态递归。
you saw an example of a polymorphic association earlier in address.
在之前的address,您已经看到了多态关联的示例。
factory pattern is a common pattern for creation of polymorphic objects of different concrete types.
工厂模式是根据不同类型创建多态对象的一个常见方法。
the following definitions can be used to create a polymorphic record.
下面的定义可用于创建一个多态的纪录。
the more serious problem is the potential for polymorphic recursion in class definitions.
更严重的问题是类定义中可能存在多态递归。
this fact may be obfuscated by our simple example earlier in which the polymorphic recursion occurs as a simple, direct self-reference.
我们先前的简单示例(其中,多态递归作为一个简单直接的自引用发生)会使这一事实变得模糊。
an even better definition of polymorphic record is presented below
下面给出一个更好的多态记录的定义
listing 10 polymorphic definition of facebook special user
清单10facebook特殊用户的多态定义
in fact, it turns out that we couldn't prevent polymorphic recursion even if we wanted to.
事实证明我们无法防止多态递归,即使我们想要那样,也是如此。
this interface enables polymorphic behavior and thus provides flexibility in two important scenarios.
此接口允许多态行为并在下面两种重要情况下提供了灵活性。
this is classic polymorphic behavior — different implementations (different xml parsing algorithms) that provide the same behavior.
这是一种典型的多态行为 —提供相同行为的不同实现(不同的xml解析算法)。
protocols allow you to define polymorphic functions over preexisting types.
协议允许您在先前存在的类型上定义多态函数。
listing 13 result of execution of polymorphic facebook user record test
清单13多态facebook用户记录测试的执行结果