Generating Code Using Reflection in the Context of Computer-Assisted Legacy System Analyses and Reengineering

Peter Krall
{"title":"Generating Code Using Reflection in the Context of Computer-Assisted Legacy System Analyses and Reengineering","authors":"Peter Krall","doi":"10.1145/2688447.2688449","DOIUrl":null,"url":null,"abstract":"The paper presents a two-step approach for DSM-based generating of substantial parts of tools for legacy-system analysis. In the first step a parser is generated from a formal grammar, representing the syntax of the legacy system's code. This parser is able to recognize the constructs of the legacy code but unaware of any analytic functionality. In the second step the code for the analytic functionality and glue code for integrating the parser-generated code into a framework is generated from a domain-specific model capturing properties of and relations between code constructs to be analyzed. Integration with parser functionality generated in first step and framework is achieved by loading classes and re-trieving information using reflection and annotations in the second step.","PeriodicalId":252689,"journal":{"name":"Proceedings of the 14th Workshop on Domain-Specific Modeling","volume":"16 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2014-10-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 14th Workshop on Domain-Specific Modeling","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/2688447.2688449","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

The paper presents a two-step approach for DSM-based generating of substantial parts of tools for legacy-system analysis. In the first step a parser is generated from a formal grammar, representing the syntax of the legacy system's code. This parser is able to recognize the constructs of the legacy code but unaware of any analytic functionality. In the second step the code for the analytic functionality and glue code for integrating the parser-generated code into a framework is generated from a domain-specific model capturing properties of and relations between code constructs to be analyzed. Integration with parser functionality generated in first step and framework is achieved by loading classes and re-trieving information using reflection and annotations in the second step.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
在计算机辅助遗留系统分析和再造的背景下使用反射生成代码
本文提出了一种基于dsm生成遗留系统分析工具主要部分的两步方法。在第一步中,从正式语法生成解析器,表示遗留系统代码的语法。该解析器能够识别遗留代码的结构,但不知道任何分析功能。在第二步中,用于分析功能的代码和用于将解析器生成的代码集成到框架中的粘合代码是从捕获要分析的代码构造的属性和关系的特定领域模型生成的。通过在第二步中加载类并使用反射和注释重新检索信息,可以实现与第一步和框架中生成的解析器功能的集成。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
A Closed-loop Model-based Design Approach based on Automatic Verification and Transformation Generating Code Using Reflection in the Context of Computer-Assisted Legacy System Analyses and Reengineering Design of a Domain-Specific Language for Material Flow Analysis Using Microsoft DSL Tools: An Experience Paper Session details: Topics in Model Transformation Session details: Tools and Language Design Experiences
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1