单词 | visitor pattern | ||||||||||||
释义 | visitor pattern
更多释义 收起释义 例句释义: 访问者模式,设计模式之访问者模式,拜访者模式 1. As for the Visitor pattern, much of the reason it is so widely applicable is the fact that it complements the Composite pattern. 至于Visitor模式,它受到如此广泛应用的许多原因是它补充了Composite模式。 www-128.ibm.com 2. Like the JDT, the CDT DOM uses a visitor pattern to interact with its parse tree. 类似于JDT,CDTDOM使用一个访问者模板,以和它的剖析树状图交流。 www.ibm.com 3. Consider the visitor pattern in which a visitor class is defined with a for method for each class in a composite hierarchy. 请考虑访问者模式,其中用for方法为复合层次结构中的每个类都定义了访问者类。 www.ibm.com 4. Implements the visitor pattern for expressions that do not produce a result value. 实现不生成结果值的表达式的访问者模式。 msdn.microsoft.com 5. Implements the visitor pattern for expressions that produce a result value of a specific type. 实现生成特定类型结果值的表达式的访问者模式。 msdn.microsoft.com 6. The visitor pattern implements a walk through a hierarchy in which the visitor specifies an operation to apply to the nodes. 访问器模式实现了层次结构的遍历,并将访问器指定的操作应用于每个节点。 www.ibm.com 7. Another example of the usage of closures and higher order functions in an object-oriented world is the Visitor pattern. 另一个在面向对象世界中使用闭包和高阶函数的例子是Visitor模式。 www-128.ibm.com 8. This serves as a useful base case, similar to a base Visitor class in the classic Visitor pattern. 这将作为一种有用的基本用例,类似于经典访问者模式中的基本Visitor类。 www.ibm.com 9. In particular, I've found that integrating functional zippers into the Visitor pattern yields efficiency benefits, which I explore. 具体来说,我发现将函数式zippers集成到访问者模式之中会带来效率方面的优势,我将对此加以讨论。 www.ibm.com 10. The visitor pattern is a simple technique to process arbitrary data structures. 访问者模式是一种处理任意数据结构的简单技术。 www.ibm.com 1. Jomo Fisher demonstrates a visitor pattern than will walk an expression tree, creating a new tree while swapping out specific nodes. JomoFisher演示了一个使用访问者模式代码,这段代码通过创建一个新树来替换特定的节点,而不是浏览整个表达式树。 www.infoq.com 2. In each case, I've found that the Visitor pattern is a reliable tool for manipulating trees of data. 无论使用哪种语言,访问者模式都是操作树形数据的一种可靠工具。 www.ibm.com 3. Curried closures can be used to mimic the essential elements of the Visitor pattern, as we showed in the Library example. Curry过的闭包可以用来模拟Visitor模式的基本元素,正如在Library例子中显示的。 www.ibm.com 4. GOF Visitor: The GOF Visitor pattern inevitably makes the whole machine depend upon all events. GOF访问者:GOF访问者模式必然使得整个状态机依赖于所有事件。 boost-doc-zh.googlecode.com 5. The visitor pattern has been documented in the book Design Patterns (see Resources). 访问器模式在DesignPatterns(设计模式)(请参阅参考资料)一书中进行了详细讲解。 www.ibm.com 6. Another aspect of the Visitor pattern not closely examined here is iteration order. 就访问者模式而言,本文未加详述的另一各方面就是迭代顺序。 www.ibm.com 7. As a first step, we can think back to our Java language implementation of the Visitor pattern and try something similar. 第一步,我们可以回顾访问者模式的Java语言实现,并尝试进行类似的实现。 www.ibm.com 8. To perform queries on the AST parse tree, the Java IDE uses a visitor pattern. 要在AST剖析树上执行查询,JavaIDE使用了一个访问者模式。 www.ibm.com 9. All bytecode scanning detectors are based on the visitor pattern, which FindBugs implements. 所有字节码扫描检测器都基于visitor模式,FindBugs实现了这个模式。 www.ibm.com 10. We call this variant the Depth-First Visitor pattern. 我们将这个变体称为Depth-FirstVisitor模式。 www-128.ibm.com 1. If we want to implement the Visitor pattern in Java, we need first to represent our nodes as Java classes. 在Java中,如果希望实现访问者模式,首先需要将节点表示为Java类。 www.ibm.com 2. Thus, in Jam, the visitor pattern can't be used with mixins. 因此,在Jam中,访问者模式不能和mixin一起使用。 www.ibm.com 3. The Visitor pattern creates a scenario where adding operations (new visitors) over the set of existing data types is easy. 访问者模式将创建一个场景,简化对现有数据类型集合添加操作(新访问者)的过程。 www.ibm.com 4. This Visitor-pattern variant can increase the terseness of your code 这种Visitor模式变体可以增加代码的简洁性 www-128.ibm.com |
||||||||||||
随便看 |
|
英汉双解词典包含2704715条英汉词条,基本涵盖了全部常用单词的翻译及用法,是英语学习的有利工具。