LOOJ: Weaving LOOM into Java
LOOJ: Weaving LOOM into Java
复制标题
LOOJ:将 LOOM 融入 Java
DOI:
10.1007/978-3-540-24851-4_18
复制
发表时间:
2004
期刊:
影响因子:
--
通讯作者:
Nate Foster
中科院分区:
文献类型:
--
作者:
Kim B. Bruce;Nate Foster
LOOJ is an extension of Java obtained by adding bounded parametric polymorphism and new type expressions ThisClass and ThisType, which are similar toMyTypein LOOM. Through examples we demonstrate the utility of this language even over very expressive extensions such as GJ. The LOOJ compiler generates standard JVML code and supports instanceof and casts for all types including type variables and the other new type expressions. The core of the LOOJ type system is sound, as demonstrated by a soundness proof for an extension of Featherweight GJ. This paper also highlights difficulties that arise from the use of both classes and interfaces as types in Java.