public final class CompileUtils extends Object
Constructor and Description |
---|
CompileUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> Class<T> |
compile(ClassLoader cl,
String name,
String code)
Compiles a generated code to a Class.
|
public static <T> Class<T> compile(ClassLoader cl, String name, String code)
T
- the class typecl
- the ClassLoader used to load the classname
- the class namecode
- the generated codeCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.