您的位置:首页 > 其它

design pattern notes [8] - interpreter, and command

2012-12-29 00:41 369 查看
Interpreter is used to parse a language, just as compiler does.

Sometimes invoker of operation does not know who will process the request or how the request will be processed.Command encapsulate the requests as object. The invoker triggers the
operation by calling execute method of local command reference. This decouples the invoker of the request and the mechanism how the request is processed.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: