Traversals of object structures

Author:

Lieberherr Karl1,Patt-Shamir Boaz2,Orleans Doug1

Affiliation:

1. Northeastern University, Boston, MA

2. Tel-Aviv University, Tel-Aviv, Israel

Abstract

Separation of concerns and loose coupling of concerns are important issues in software enginnering. In this paper we show how to separate traversal-related concerns from other concerns, how to loosely couple traversal-related concerns to the structural concern, and how to efficiently implement traversal-related concerns. The stress is on the detailed description of our algorithms and the traversal specifications they operate on.Traversal of object structures is a ubiquitous routine in most types of information processing. Ad hoc implementations of traversals lead to scattered and tangled code and in this paper we present a new approach, called traversal strategies, to succinctly modularize traversals. In our approach traversals are defined using a high-level directed graph description, which is compiled into a dynamic road map to assist run-time traversals. The complexity of the compilation algorithm is polynomial in the size of the traversal strategy graph and the class graph of the given application. Prototypes of the system have been developed and are being successfully used to implement traversals for Java and AspectJ [Kiczales et al. 2001] and for generating adapters for software components. Our previous approach, called traversal specifications [Lieberherr 1992; Palsberg et al. 1995], was less general and less succinct, and its compilation algorithm was of exponential complexity in some cases. In an additional result we show that this bad behavior is inherent to the static traversal code generated by previous implementations, where traversals are carried out by invoking methods without parameters.

Publisher

Association for Computing Machinery (ACM)

Subject

Software

Reference57 articles.

1. Aho A. V. Sethi R. and Ullman J. D. 1986. Compilers---Principles Techniques and Tools. Addison-Wesley Reading MA 126--127 (Algorithm 3.4). Aho A. V. Sethi R. and Ullman J. D. 1986. Compilers---Principles Techniques and Tools. Addison-Wesley Reading MA 126--127 (Algorithm 3.4).

2. Blando L. 2002. Mission critical verizon project using demeterJ. Tech. rep. Verizon. Available online at at http://www.ccs.neu.edu/research/demeter/evaluation/gte-labs/. Blando L. 2002. Mission critical verizon project using demeterJ. Tech. rep. Verizon. Available online at at http://www.ccs.neu.edu/research/demeter/evaluation/gte-labs/.

3. Booch G. Rumbaugh J. and Jacobson I. 1999. The Unified Modeling Language User Guide. Object Technology Series. Addison Wesley. Reading MA. Booch G. Rumbaugh J. and Jacobson I. 1999. The Unified Modeling Language User Guide. Object Technology Series. Addison Wesley. Reading MA.

Cited by 16 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Programming errors in traversal programs over structured data;Science of Computer Programming;2013-10

2. Walk Your Tree Any Way You Want;Theory and Practice of Model Transformations;2013

3. Transformation of structure-shy programs with application to XPath queries and strategic functions;Science of Computer Programming;2011-06

4. Optimization of Visitor Performance by Reflection-Based Analysis;Theory and Practice of Model Transformations;2011

5. An algebraic foundation for automatic feature-based program synthesis;Science of Computer Programming;2010-11

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3