“decorator”可以造什么句,decorator造句

来源:语文精选馆 2.06W
decorator造句

The decorator had the wood paneling painted to imitate marble.

An advantage of the decorator pattern is that you can easily tack on more than one decorator to the base at a time.

But I can make a decorator without adding the extra structure of a class-based approach.

Their icons are shown with a decorator at the top left, as shown in Figure 28.

This looks better both to write the decorator in the first place, and in its behavior-preserving metadata.

Mylyn's interest decorator then uses font coloring to highlight the level of interest each element has accrued from your interaction.

A decorator might return a function, but one that is not meaningfully associated with the undecorated function.

The reader may be tempted to try a purely declarative (xml-only) decorator to tag projects with running HSQLDB server, as shown in Listing 18.

这是因为事实上项目并不在受decorator影响的资源列表上,所以没有LabelProviderChange dEvent。

本例中未修饰的Foo . say方法是一个简单的占位符,其整个行为都是由decorator决定的。

读者可能会试图去用纯粹的说明*(纯 xml)decorator来标记具有正在运行的HSQLDB服务器的项目上,如清单18 所示。

清单14.decorator更聪明的用法。

The decorator process exposes the same interface as the task it invokes.

For example, if a process calls a human task in a late-bound fashion, it calls a decorator process using late binding, and in turn, the decorator process calls the task statically.

然而,在其他情况下,decorator可能会将未修饰的方法与一些新功能相结合。

如果方法的前缀使用 @abstractmethod 修饰符(decorator),那么此方法就是一个抽象方法。

Listing 14. Smarter use of decorator.

When you invoke this decorator, you wrap it around any instance.

作为一个python函数,decorator完全可以实现其他Python代码所实现的任何功能。

Because human tasks are always asynchronous, the corresponding decorator process is typically a long-running process.

This pattern USES late binding to invoke the currently valid version of a decorator process representing the actual human task, and thus it enables late binding to that task.

This event is actually fired by the updateDecorators from class HsqldbRunningDecorator, which represents the "other" decorator defined by the plugin.

热门标签