public class JavaStringCompiler extends Object
| 构造器和说明 |
|---|
JavaStringCompiler() |
public Map<String,byte[]> compile(String fileName, String source) throws IOException
fileName - Java file name, e.g. "Test.java"source - The source code as String.IOException - If compile error.public Class<?> loadClass(String name, Map<String,byte[]> classBytes) throws ClassNotFoundException, IOException
name - Full class name.classBytes - Compiled results as a Map.ClassNotFoundException - If class not found.IOException - If load error.Copyright © 2016. All rights reserved.