首页> 外文会议>ACM symposium on Applied computing >Understanding access restriction of variant parametric types and Java wildcards
【24h】

Understanding access restriction of variant parametric types and Java wildcards

机译:了解变体参数类型和Java通配符的访问限制

获取原文

摘要

Variant parametric types [8] have been introduced to provide a flexible subtyping mechanism for generic types, and are recently being developed into Java wildcards [15], shipped worldwide with the JDK 1.5 release. The two approaches, which are strictly related, retain safety by providing rather peculiar and non-trivial mechanisms to restrict access to a class functionalities (methods and fields). In this paper we aim at studying a unified framework to describe this issue in detail, and to facilitate the understanding and exploitation of this new programming concept.Our work is both technical and conceptual. On the one hand, we provide formal rules to access restriction and specialise them for the two approaches, so as to emphasise similarities and differences. On the other hand, we show that such rules promote a natural description and understanding of access restriction in terms of the ability of (instances of) a generic class to produce/consume elements of the abstracted type.
机译:引入了可变参数类型[8]来为通用类型提供灵活的子类型化机制,并且最近已被开发为Java 通配符 [15],随JDK 1.5发行版一起在全球范围内提供。这两种方法是严格相关的,它们通过提供特殊而又不平凡的机制来限制对类功能(方法和字段)的访问,从而保持了安全性。在本文中,我们旨在研究一个统一的框架来详细描述此问题,并促进对这种新编程概念的理解和利用。我们的工作既是技术性的又是概念性的。一方面,我们提供了访问限制的正式规则,并专门针对这两种方法,以强调异同。另一方面,我们表明,根据泛型类(实例)产生/使用抽象类型元素的能力,此类规则促进了对访问限制的自然描述和理解。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号