He works as a painter and decorator.
他的职业是油漆匠和装潢师傅。
Kennedy had no formal training as a decorator.
肯尼迪没有接受过油漆工的正式培训。
The decorator is parameterized.
decorator 都是参数化的。
Listing 14. Smarter use of decorator.
清单14.decorator更聪明的用法。
Listing 7. The classinitializer decorator.
清单7. classinitializer装饰器。
There are two main benefits to the decorator module.
decorator模块有两大主要优势。
Figure 4 shows a class diagram for the decorator pattern.
图4显示了装饰器模式的类图。
InfoQ: What distinguishes a decorator from an interceptor?
InfoQ:装饰器和拦截器的区别是什么?
The classinitializer decorator provides a declarative solution.
classinitializer装饰器提供了一个说明性解决方案。
Any method called with this decorator USES only lowercase strings.
使用此修饰符调用的任何方法都将只使用小写字符串。
The decorator process exposes the same interface as the task it invokes.
装饰流程公开了与其调用的任务相同的接口。
A method is abstract if it's preceded with the decorator @abstractmethod.
如果方法的前缀使用 @abstractmethod修饰符(decorator),那么此方法就是一个抽象方法。
Their icons are shown with a decorator at the top left, as shown in Figure 28.
在它们所显示的图标的左上方有一个小的装饰物,如图28所示。
Their ICONS are shown with a decorator at the top left, as shown in Figure 28.
在它们所显示的图标的左上方有一个小的装饰物,如图28所示。
The decorator pattern is used by the DelegatingMessageHandler class shown in Listing 7.
清单7中的DelegatingMessage handler类使用了decorator模式。
Here is the code for classinitializer. You do not need to understand it to use the decorator.
下面是classinitializer的代码。
An additional image decorator is provided by AJDT to indicate which elements are affected by advice.
AJDT提供了一个额外的图片装饰来指明哪些元素受到advice的影响。
This looks better both to write the decorator in the first place, and in its behavior-preserving metadata.
这对于编写decorator更加有利,同时,其保留行为的元数据的也更出色了。
The special method default is marked as a CherryPy handler function by the @cherrypy.expose decorator.
default这个特殊方法使用 @cherrypy.expose 修饰符标记为 CherryPy处理程序函数。
Listing 19 shows the correct declaration for the second decorator, and Listing 20 the implementation class.
清单19显示了对第二个decorator的正确声明,清单20是实现类。
A comfortable spacious bathroom decoration could prove to be a challenging job for the bathroom decorator.
把浴室装饰的舒服而不拥挤,对装潢师来说是件挑战性的工作。
A decorator might return a function, but one that is not meaningfully associated with the undecorated function.
decorator可能会返回一个函数,但这个函数与未修饰的函数之间不存在有意义的关联。
However, in other cases, the decorator might combine the undecorated method behavior with some new capabilities.
然而,在其他情况下,decorator可能会将未修饰的方法与一些新功能相结合。
An advantage of the decorator pattern is that you can easily tack on more than one decorator to the base at a time.
装饰器模式的优点是可以轻松地同时跟踪库的多个装饰器。
The first decorator can DE defined declaratively, using just the plugin.xml manifest elements (see Listing 17).
第一个decorator只需要使用plugin . xml清单元素就可以被定义为可声明的(见清单17)。
In this rather long letter the woman said that as she was a decorator and I an architect, we might work together.
在这封挺长的信里,那个女人说她是装潢师我是建筑师,我们没准可以合作做点什么。
Having a certain reflexive elegance, the main component of the decorator module is a decorator called decorator .
decorator模块的主要组件具有某种自反式的优雅,它是一个称为decorator的decorator。
The GenericLowerDecorator class ACTS as a universal decorator to force all string-based parameters into lowercase.
GenericLowerDecorator类充当一个通用修饰符,用于强制所有基于字符串的参数使用小写形式。
Because human tasks are always asynchronous, the corresponding decorator process is typically a long-running process.
由于人工任务始终是异步的,对应的装饰流程通常为长时间运行的流程。
The undecorated Foo.say method in this case is a simple placeholder, with the entire behavior determined by the decorator.
本例中未修饰的Foo. say方法是一个简单的占位符,其整个行为都是由decorator决定的。
应用推荐