期刊文献+

Java语言多重分派机制的研究 被引量:1

A Research on Multi-Method Dispatch Extension in Java
下载PDF
导出
摘要 多重分派是面向对象语言的一个高级特性,是面向对象程序设计中多态性实现的基础。目前的主流面向对象语言Java与C++都不支持动态多重分派。文章介绍了Java语言现有的分派技术,讨论了为Java语言添加动态多重分派特性的几种途径并对它们的利弊进行比较。文章提出并分析了面向对象语言实现多重分派需要解决的若干问题,最后展望了未来的研究方向。 Multi-Method dispatch is an advanced topic of Object Oriented(OO)Language.As a mainstream OO lan-guage,Java as currently defined does not support dynamic multi-dispatch.This limits some OO spirit(polymorphism,etc.)to be embodied in Java.This paper is focused on the extensions of Java to support multi-dispatch feather.The authors analyze the dispatching mechanism of Java platform,then several different approachs to implement dynamic multi-dis-patch in Java are introduced and the advantages and drawbacks are discussed.They also present a case study of the simulation of multi-dispatch based on the'Visitor'design pattern and at last,proposal of further work is presented.
出处 《计算机工程与应用》 CSCD 北大核心 2002年第22期100-103,共4页 Computer Engineering and Applications
关键词 JAVA语言 多重分派机制 虚拟机 设计模式 面向对象 程序设计 Multi-dispatch,Double-dispatch,Java,JVM,Design Pattern
  • 相关文献

参考文献10

  • 1T Lindholm,F Yellin. The Java Virtual Machine Specification[M].2ndEdition
  • 2J Gosling,B Joy,G Steele,G Bracha. The Java Language Specification[M].2nd Edition. Addison-Wesley, 2000
  • 3丁宇新,程虎Java虚拟机详细设计[M].中国科学院软件研究所,1999
  • 4Bill Venners. Inside the Java2 Virtual Machine[M].Computing Mc-Graw-Hill, 1998
  • 5C Dutchyu,P Lu,D Szafron. S Bromling,W Holst. Multi-Dispatch inthe Java Virtual Machine:Design and Implementation. COOTS 2001
  • 6C Pang,W Holst,Y Leontiev et al. Multi-Method Dispatch UsingMultiple Row Displacement. ECOOP'99
  • 7E Gamma,R Helm,R Johnson et al.李英军等译.设计模式[M].机械工业出版社,2000
  • 8J Boyland,G Castagna. Parasitic methods :An implementation of mul-ti-methods for Java. OOPSLA 1997
  • 9W Holst,D Szafron,C Pang et al. Multi-Method Dispatch UsingSingle-Receiver Projections. ECOOP'97
  • 10S Lippman.侯捷译.Inside the C++Object Model[M].华中科技大学出版社,2001

同被引文献11

引证文献1

二级引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部