Java动态绑定的方法重载的实现  被引量:1

Implementation of Dynamic Binding Method Overloading in Java

在线阅读下载全文

作  者:严忠林[1] 

机构地区:[1]上海师范大学

出  处:《微型电脑应用》2015年第12期69-71,6,共3页Microcomputer Applications

摘  要:Java支持"方法重载",但其执行代码是在编译时就确定的,不能根据运行时的实际对象动态改变,这有时会增加代码的复杂性。通过使用JSR-292提供的功能,可以实现一个框架,让Java拥有在运行时绑定重载代码的能力。可以提高程序的简明性、可重用性和可扩展性。Java allows ‘method overloading'. Its execution code is determined at compile time, and cannot be changed at runtime based on the actual object. This may increase the complexity of the program. By using the JSR-292, this paper implements a framework to bind overloaded method at runtime. The program can be more simple, reusable and extensible.

关 键 词:方法重载 方法重写 动态调用指令 方法句柄 Java类文件处理 

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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