【24h】

A Case of Visitor versus Interpreter Pattern

机译:一个案例与解释器模式

获取原文
获取外文期刊封面目录资料

摘要

We compare the Visitor pattern with the Interpreter pattern, investigating a single case in point for the Java language We have produced and compared two versions of an interpreter for a programming language. The first version makes use of the Visitor pattern. The second version was obtained by using an automated refactoring to transform uses of the Visitor pattern to uses of the Interpreter pattern. We compare these two nearly equivalent versions on their maintenance characteristics and execution efficiency. Using a tailored experimental research method we can highlight differences and the causes thereof. The contributions of this paper are that it isolates the choice between Visitor and Interpreter in a realistic software project and makes the difference experimentally observable.
机译:我们将访客模式与解释器模式进行比较,调查我们已生成的Java语言点的单个案例,并将两个版本的解释器进行了编程语言。第一个版本利用访问者模式。通过使用自动重构来获得第二版本,以将访问者模式的用途转换为解释器模式的使用。我们比较了这两个几乎等同的版本,以了解其维护特征和执行效率。使用量身定制的实验研究方法,我们可以突出显示差异和原因。本文的贡献是它隔离在现实软件项目中游客和口译员之间的选择,并使实验可观察到的差异。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号