Generating Trace Table for Java Programs

Masateru Kishikawa, Mika Ohtsuki, T. Kakeshita
{"title":"Generating Trace Table for Java Programs","authors":"Masateru Kishikawa, Mika Ohtsuki, T. Kakeshita","doi":"10.1109/IIAIAAI55812.2022.00048","DOIUrl":null,"url":null,"abstract":"It is difficult for programming beginners to understand the behavior of object-oriented programs since an object-oriented program contains various dynamic behavior such as dynamic binding and polymorphism. Trace table is useful to facilitate understanding of object-oriented programs. Traditionally a trace table is used to facilitate understanding of a structured non-object-oriented program. We extend the notion of trace table to represent the dynamic behavior of object-oriented programs and propose a trace table generator for Java programs in this paper. The trace table is represented using an Excel file and is designed by extending the notion of the UML sequence diagram. Each worksheet of the trace table corresponds to an instance. Each column of the worksheet contains a value of the instance variables and local variables within the instance as well as message sending among the instances. Each row of the worksheet represents a sequence of steps at each method. The trace table generator is implemented using JavaParser and inserts code to the original collection of Java source codes. Various information to generate a trace table is extracted by executing the converted source code.","PeriodicalId":156230,"journal":{"name":"2022 12th International Congress on Advanced Applied Informatics (IIAI-AAI)","volume":"42 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-07-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 12th International Congress on Advanced Applied Informatics (IIAI-AAI)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/IIAIAAI55812.2022.00048","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

It is difficult for programming beginners to understand the behavior of object-oriented programs since an object-oriented program contains various dynamic behavior such as dynamic binding and polymorphism. Trace table is useful to facilitate understanding of object-oriented programs. Traditionally a trace table is used to facilitate understanding of a structured non-object-oriented program. We extend the notion of trace table to represent the dynamic behavior of object-oriented programs and propose a trace table generator for Java programs in this paper. The trace table is represented using an Excel file and is designed by extending the notion of the UML sequence diagram. Each worksheet of the trace table corresponds to an instance. Each column of the worksheet contains a value of the instance variables and local variables within the instance as well as message sending among the instances. Each row of the worksheet represents a sequence of steps at each method. The trace table generator is implemented using JavaParser and inserts code to the original collection of Java source codes. Various information to generate a trace table is extracted by executing the converted source code.
为Java程序生成跟踪表
由于面向对象程序包含各种动态行为,如动态绑定和多态,因此对于编程初学者来说,理解面向对象程序的行为是很困难的。跟踪表有助于理解面向对象的程序。传统上,跟踪表用于帮助理解结构化的非面向对象程序。本文将跟踪表的概念扩展到表示面向对象程序的动态行为,并提出了一个用于Java程序的跟踪表生成器。跟踪表使用Excel文件表示,并通过扩展UML序列图的概念来设计。跟踪表的每个工作表对应于一个实例。工作表的每一列都包含实例变量和实例内的局部变量的值,以及实例之间发送的消息。工作表的每一行表示每种方法的一系列步骤。跟踪表生成器使用JavaParser实现,并将代码插入到Java源代码的原始集合中。通过执行转换后的源代码提取用于生成跟踪表的各种信息。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信