arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1506.05270cs.PL
收藏

jUCM:通用类变形(立场文件)

jUCM: Universal Class Morphing (position paper)

Aggelos Biboudis, George Fourtounis, Yannis Smaragdakis

摘要:

我们扩展了以前的工作,类变形,以提供一个更具表现力的基于模式的编译时反射语言。我们的MorphJ语言提供了一种规范的元编程形式,它通过静态迭代和模式匹配其他类型的字段和方法来生成类型。我们用“通用变形”扩展了这样的功能,它也允许在类型上进行模式匹配(例如,所有类嵌套在另一个类中,所有类的超类型),同时为我们的元程序维护模块化类型安全。我们提出了非正式的功能的例子,并讨论了一个设计,增加通用变形到Java。

英文摘要:

We extend prior work on class-morphing to provide a more expressive pattern-based compile-time reflection language. Our MorphJ language offers a disciplined form of metaprogramming that produces types by statically iterating over and pattern-matching on fields and methods of other types. We expand such capabilities with "universal morphing", which also allows pattern-matching over types (e.g., all classes nested in another, all supertypes of a class) while maintaining modular type safety for our meta-programs. We present informal examples of the functionality and discuss a design for adding universal morphing to Java.

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

↑