arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1602.05891cs.SEcs.PL
收藏

JSClassFinder:一个检测JavaScript类结构的工具

JSClassFinder: A Tool to Detect Class-like Structures in JavaScript

Leonardo Humberto Silva, Daniel Hovadick, Marco Tulio Valente, Alexandre Bergel, Nicolas Anquetil, Anne Etien

摘要:

随着JavaScript在Web应用程序中的使用越来越多,编写可靠和可维护的JavaScript代码的需求越来越大。为了实现这些目标,可以在当前的JavaScript标准版本中模拟类。在本文中,我们提出了一个再工程工具,以确定这样的类结构,并创建一个面向对象的模型的基础上JavaScript源代码。该工具有一个解析器,它加载JavaScript应用程序的AST(抽象树)来对其结构建模。它还与Moose平台集成,提供强大的可视化功能,例如,UML图和分布图,以及用于软件分析的众所周知的度量值。我们还提供了一些真实JavaScript应用程序的示例来评估该工具。

英文摘要:

With the increasing usage of JavaScript in web applications, there is a great demand to write JavaScript code that is reliable and maintainable. To achieve these goals, classes can be emulated in the current JavaScript standard version. In this paper, we propose a reengineering tool to identify such class-like structures and to create an object-oriented model based on JavaScript source code. The tool has a parser that loads the AST (Abstract Syntax Tree) of a JavaScript application to model its structure. It is also integrated with the Moose platform to provide powerful visualization, e.g., UML diagram and Distribution Maps, and well-known metric values for software analysis. We also provide some examples with real JavaScript applications to evaluate the tool.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑