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

A Research on Multi-Method Dispatch Extension in Java

在线阅读下载全文

作  者:舒国强[1] 潘爱民[2] 

机构地区:[1]中国科学院软件研究所先进软件技术联合实验室,北京100080 [2]北京大学计算机研究所,北京100871

出  处:《计算机工程与应用》2002年第22期100-103,共4页Computer Engineering and Applications

摘  要:多重分派是面向对象语言的一个高级特性,是面向对象程序设计中多态性实现的基础。目前的主流面向对象语言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.

关 键 词:JAVA语言 多重分派机制 虚拟机 设计模式 面向对象 程序设计 

分 类 号:TP312[自动化与计算机技术—计算机软件与理论] TP311.1[自动化与计算机技术—计算机科学与技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象