首页> 外国专利> A METHOD OF IMPLEMENTING PARAMETERIZED TYPES TO BE COMPATIBLE WITH EXISTING UNPARAMETERIZED LIBRARIES

A METHOD OF IMPLEMENTING PARAMETERIZED TYPES TO BE COMPATIBLE WITH EXISTING UNPARAMETERIZED LIBRARIES

机译:一种实现参数化类型与现有未参数化库兼容的方法

摘要

A method and apparatus for generating code using parameterized classes which is compatible with an existing class library that was previously generated using unparameterized classes is disclosed. According to the method, parameterized source code is received that contains variables that belong to a plurality of types which are defined by supplying parameter values to a parameterized class definition. Static type checking is performed on the parameterized source code to determine if any incompatible type assignments exist between variables that belong to the plurality of types and values assigned to the variables. If no incompatible type assignments exist, then a homogeneous translation is performed on the parameterized source code to generate unparameterized class code. The unparameterized class code is then compiled to produce code that is compatible with the existing class library that was generated using unparameterized classes.
机译:公开了一种用于使用参数化的类生成代码的方法和装置,该方法和设备与先前使用非参数化的类生成的现有类库兼容。根据该方法,接收参数化的源代码,该参数化的源代码包含属于多个类型的变量,这些变量通过将参数值提供给参数化的类定义来定义。对参数化的源代码执行静态类型检查,以确定在属于多种类型的变量与分配给变量的值之间是否存在任何不兼容的类型分配。如果不存在不兼容的类型分配,则对参数化的源代码执行均质转换以生成未参数化的类代码。然后,对未参数化的类代码进行编译,以生成与使用非参数化类生成的现有类库兼容的代码。

著录项

  • 公开/公告号EP1086419A1

    专利类型

  • 公开/公告日2001-03-28

    原文格式PDF

  • 申请/专利权人 SUN MICROSYSTEMS INC.;

    申请/专利号EP19990928659

  • 发明设计人 STOUTAMIRE DAVID P.;

    申请日1999-06-16

  • 分类号G06F9/44;G06F9/45;

  • 国家 EP

  • 入库时间 2022-08-22 01:15:53

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号