文件名称:DynamicJavaCompiler:动态编译类
文件大小:10KB
文件格式:ZIP
更新时间:2024-06-02 04:43:50
Java
动态Java编译器 即时编译/加载类 代码生成器动态编译和加载的示例使用: // generate implementation for a known interface String className = " package.GenedDummyImpl " String code = ... // Compile and load class using a JavaLoader JavaLoader loader = new JavaLoader (); loader . compile(className, code); // Instatiate and use KnownDummyInterface dummy = ( KnownDummyInterface ) loader . instantiate(className); dummy . doStuff();
【文件预览】:
DynamicJavaCompiler-master
----src()
--------com()
----LICENSE(7KB)
----README.md(494B)
----.gitignore(234B)