public class JavaStringCompiler extends Object
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 © 2023 wuyushuo. All rights reserved.