摘要
代码动态生成是指在程序运行时根据实际情况即时生成需要的类代码。它可以提高程序的灵活性,已被用于很多应用架构、脚本语言的实现中。为帮助学生掌握代码动态生成技术,探讨了相关技术的实现方法、工具的应用和教学思路。
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.
出处
《计算机时代》
2013年第5期7-9,12,共4页
Computer Era