arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1807.03566cs.PLcs.SE
收藏

一种有效设计Java注释的建模语言

A modelling language for the effective design of Java annotations

Irene Córdoba, Juan de Lara

摘要:

本文介绍了一种新的建模语言,有效的Java注释设计。自从被纳入Java第5版以来,注释已经从一个添加元数据的有用工具发展成为许多流行软件项目的核心角色。通常,它们被认为是具有依赖性和完整性约束的集合;然而,Java为表达这种设计提供的本地支持非常有限。为了克服它的不足之处,并明确丰富的概念模型背后的一组注释,我们提出了一个特定领域的建模语言。该提案已被实现为Eclipse插件,包括一个编辑器和一个集成的代码生成器,它可以合成注释处理器。该语言已经使用Java Persistence API(JPA)的一组真实注释进行了测试。事实证明,与不同的共同应用领域的其他相关工作相比,它涵盖的范围更广。

英文摘要:

This paper describes a new modelling language for the effective design of Java annotations. Since their inclusion in the 5th edition of Java, annotations have grown from a useful tool for the addition of meta-data to play a central role in many popular software projects. Usually they are conceived as sets with dependency and integrity constraints within them; however, the native support provided by Java for expressing this design is very limited. To overcome its deficiencies and make explicit the rich conceptual model which lies behind a set of annotations, we propose a domain-specific modelling language. The proposal has been implemented as an Eclipse plug-in, including an editor and an integrated code generator that synthesises annotation processors. The language has been tested using a real set of annotations from the Java Persistence API (JPA). It has proven to cover a greater scope with respect to other related work in different shared areas of application.

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

↑