首页> 外国专利> Instantiating an interface or abstract class in application code

Instantiating an interface or abstract class in application code

机译:在应用程序代码中实例化接口或抽象类

摘要

Mechanisms for instantiating an interface or abstract class in application code are provided. An object-oriented programming language is extended such that interfaces and abstract classes can be instantiated in application code without a concrete class specified. Metadata is defined which maps each interface or abstract class instantiation in the application code to a concrete class to be used either by the compiler at build time, or the virtual machine at runtime. Once the appropriate concrete class is determined from the metadata, the class is instantiated with a conventional class loader. The metadata may be provided, for example, as a separate file, such as a markup language file, defined with a virtual machine switch, as annotations in the application code, or the like.
机译:提供了用于在应用程序代码中实例化接口或抽象类的机制。扩展了面向对象的编程语言,以便可以在没有指定具体类的情况下在应用程序代码中实例化接口和抽象类。定义了元数据,该元数据将应用程序代码中的每个接口或抽象类实例映射到具体类,以供编译器在构建时或虚拟机在运行时使用。一旦从元数据中确定了合适的具体类,就可以使用常规的类加载器实例化该类。元数据可以例如作为单独的文件(例如标记语言文件)提供,并由虚拟机开关定义,作为应用程序代码中的注释等提供。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号