首页> 外国专利> Structural representation of generic type variable in a nominally typed virtual machine

Structural representation of generic type variable in a nominally typed virtual machine

机译:标称类型的虚拟机中通用类型变量的结构表示

摘要

Techniques herein process type variables to transform type parameters (TPs) of generic classes. In an embodiment, a computer stores a generic class attribute associated with a definition of a generic class. The generic class attribute includes a type variable declaration (TVD) for each TP. Each TVD is associated with usage entries (VUEs) within the definition. Each VUE indicates an actual type for use, within a portion of the definition, as the TP represented by the VUE. Based on how a particular portion of the definition uses a particular TP represented by a particular TVD of a particular VUE, the computer determines whether the particular VUE is to be assigned to a particular type or erased. In response to determining that the particular VUE is to be erased, the computer configures the particular VUE to indicate erasure. Otherwise, the computer assigns the particular type to the particular VUE.
机译:本文的技术处理类型变量以转换通用类的类型参数(TP)。在一个实施例中,计算机存储与通用类别的定义相关联的通用类别属性。通用类属性包括每个TP的类型变量声明(TVD)。每个TVD与定义中的使用项(VUE)关联。每个VUE在定义的一部分内指示要使用的实际类型,作为VUE表示的TP。基于定义的特定部分如何使用由特定VUE的特定TVD表示的特定TP,计算机确定是将特定VUE分配给特定类型还是擦除该特定VUE。响应于确定要擦除特定的VUE,计算机将特定的VUE配置为指示擦除。否则,计算机会将特定类型分配给特定的VUE。

著录项

  • 公开/公告号US10275226B2

    专利类型

  • 公开/公告日2019-04-30

    原文格式PDF

  • 申请/专利权人 ORACLE INTERNATIONAL CORPORATION;

    申请/专利号US201615332277

  • 发明设计人 MAURIZIO CIMADAMORE;BRIAN GOETZ;

    申请日2016-10-24

  • 分类号G06F9/445;G06F8/30;G06F9/455;G06F9/448;G06F8/41;

  • 国家 US

  • 入库时间 2022-08-21 12:13:17

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号