基于标识符分析的领域术语自动推导与概念定位
Automatic derivation of domain terms and concept location based on the analysis of the identifiers
摘要:
开发人员在特定选择的标识符和注释中表达领域思想的含义,这些标识符和注释形成了目标实现的代码。软件维护需要对编码思想的了解和理解。本文提出了一种自动生成领域词汇的方法。领域词汇表的知识支持对特定领域的理解,以便以后进行代码维护或改进。我们目前在两个选定的领域进行的实验:应用服务器和Web框架。领域术语的知识使得属于特定术语的代码块能够容易地本地化。我们将这些代码块视为“概念”,并将它们在代码中的位置视为“概念位置”。应用程序开发人员也可以从所获得的领域术语中受益。这些术语是表征某个概念的词性。概念被编码在“类”(OO范式)中,获得的术语词汇表支持类的适当标识符的选择和理解。我们使用我们的工具测量了以下软件产品:JBoss、JOnAS、GlassFish、Tapestry、Google Web Toolkit和Echo 2。
英文摘要:
Developers express the meaning of the domain ideas in specifically selected identifiers and comments that form the target implemented code. Software maintenance requires knowledge and understanding of the encoded ideas. This paper presents a way how to create automatically domain vocabulary. Knowledge of domain vocabulary supports the comprehension of a specific domain for later code maintenance or evolution. We present experiments conducted in two selected domains: application servers and web frameworks. Knowledge of domain terms enables easy localization of chunks of code that belong to a certain term. We consider these chunks of code as "concepts" and their placement in the code as "concept location". Application developers may also benefit from the obtained domain terms. These terms are parts of speech that characterize a certain concept. Concepts are encoded in "classes" (OO paradigm) and the obtained vocabulary of terms supports the selection and the comprehension of the class' appropriate identifiers. We measured the following software products with our tool: JBoss, JOnAS, GlassFish, Tapestry, Google Web Toolkit and Echo2.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。