He works as a painter and 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:装饰器和拦截器的区别是什么?
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所示。
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的影响。
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可能会将未修饰的方法与一些新功能相结合。
In the debug view, notice that the application being debugged has a [Team] decorator on it, as Figure 30 shows.
在Debug视图中,注意调试的程序上面有一个[Team]的标示符,见于图30。
In this rather long letter the woman said that as she was a decorator and I an architect, we might work together.
在这封挺长的信里,那个女人说她是装潢师我是建筑师,我们没准可以合作做点什么。
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 decorator process either contains the task as an inline task, or it invokes the corresponding human task component.
装饰流程或者作为内联任务包含该任务,或者调用对应的人工任务组件。
The undecorated Foo.say method in this case is a simple placeholder, with the entire behavior determined by the decorator.
本例中未修饰的Foo. say方法是一个简单的占位符,其整个行为都是由decorator决定的。
Enter the decorator pattern, which allows you to add this functionality onto the AutomobileModel in a nice, clean class.
进入装饰器模式,该模式允许您通过一个优秀整洁的类将此功能添加到AutomobileModel。
The general "decorator pattern" is a design pattern that allows adding new behavior to an existing component dynamically.
一般的“装饰模式”是一种设计模式,允许动态地向现有组件添加新的行为。
Halden hired an interior decorator who used 18 different colors to create a sense of variety and stimulate various moods.
哈尔登雇用了一名室内装饰师,用18种不同的颜色创造了多种感觉,激发不同的情绪。
Below are two sample controller methods associated with the category HTML template through the TurboGears expose decorator.
下面是TurboGears expose中与分类HTML模板有关的两个样例控制器方法。
Presumably such a type_check decorator would raise an exception or take some corrective action if the types are not as expected.
如果这些类型并非如我们预期的一样,那么这种type_checkdecorator就可能会触发一个异常,或者采取一些纠正操作。
When Amie Corley and her husband Rob purchased this 1907 St. Louis home in 2004, Amie was just starting her career as a decorator.
当AmieCorley和她的丈夫Rob在2004年在圣路易斯买下这座建于1907年的房子时,她才刚刚成为一位室内设计师。
Plus, because it is a decorator-based JUnit extension framework, you can easily use JUnitPerf to decorate existing JUnit tests.
另外,由于它是一个基于装饰器的JUnit扩展框架,所以可以很容易地用JUnitPerf 装饰现有的 JUnit测试。
Mylyn's interest decorator then uses font coloring to highlight the level of interest each element has accrued from your interaction.
Mylar兴趣修饰器随后使用字体着色来高亮显示每个元素从交互中积累的兴趣等级。
应用推荐