使用代码动态生成技术提升Java程序灵活性  被引量:2

Using code dynamic generation to enhance the flexibility of Java programs

在线阅读下载全文

作  者:严忠林[1] 

机构地区:[1]上海师范大学信息与机电工程学院,上海200234

出  处:《计算机时代》2013年第5期7-9,12,共4页Computer Era

摘  要:代码动态生成是指在程序运行时根据实际情况即时生成需要的类代码。它可以提高程序的灵活性,已被用于很多应用架构、脚本语言的实现中。为帮助学生掌握代码动态生成技术,探讨了相关技术的实现方法、工具的应用和教学思路。Code dynamic generation is defined as class code generated instantly according to the actual needs when the program is running. It enhances the flexibility of the program, so it has been used in many framework and scripting language implementations. Students who are familiar with Java, JVM mechanism and Java class file structure will master this technique easily. It is beneficial for them to learn new concepts and new programming models based on this technology, which help them build more efficient, flexible and innovative application projects. The implementation methods, tools and teaching considerations are discussed.

关 键 词:代码动态生成 JAVA虚拟机 Java类文件 BYTECODE ASM 

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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