首页> 外国专利> INTROSPECTION SUPPORT FOR LOCAL AND ANONYMOUS CLASS

INTROSPECTION SUPPORT FOR LOCAL AND ANONYMOUS CLASS

机译:本地和匿名班级的自我支持

摘要

PROBLEM TO BE SOLVED: To provide an improved technique for determining a class where a generic type variable is defined.;SOLUTION: A technique provides introspection support for local and anonymous classes. As a result of the technique, an enclosing class that defines a generic type variable that is not defined within a local or anonymous class that refers to the generic type variable can be determined. When a compiler determines that a particular class is a local or anonymous class, the compiler emits, into the particular class' binary class file, information that indicates which class encloses the particular class. In response to the invocation of a method relative to a reflective proxy that corresponds to an enclosed class, information that identifies an enclosing class that encloses the enclosed class is returned. This is so even if the enclosed class is a local or anonymous class.;COPYRIGHT: (C)2007,JPO&INPIT
机译:解决的问题:提供一种改进的技术来确定定义了通用类型变量的类。解决方案:一种技术为本地和匿名类提供了自省支持。作为该技术的结果,可以确定定义通用类型变量的封闭类,该通用类型变量在引用通用类型变量的本地或匿名类中未定义。当编译器确定某个特定类是本地或匿名类时,编译器会向该特定类的二进制类文件中发出指示哪个类包围该特定类的信息。响应于相对于与封闭类相对应的反射代理的方法的调用,返回标识封闭该封闭类的封闭类的信息。即使封闭类是本地类还是匿名类,也是如此。版权所有:(C)2007,JPO&INPIT

著录项

  • 公开/公告号JP2007012066A

    专利类型

  • 公开/公告日2007-01-18

    原文格式PDF

  • 申请/专利权人 SUN MICROSYST INC;

    申请/专利号JP20060178451

  • 申请日2006-06-28

  • 分类号G06F9/44;

  • 国家 JP

  • 入库时间 2022-08-21 21:13:50

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号