public final class GeneratedClass<T> extends Object implements Serializable
newInstance(ClassLoader)
method to get an
instance by reference objects easily.Constructor and Description |
---|
GeneratedClass(String className,
String code) |
GeneratedClass(String className,
String code,
Object[] references) |
Modifier and Type | Method and Description |
---|---|
Class<T> |
compile(ClassLoader classLoader)
Compiles the generated code, the compiled class will be cached in the
GeneratedClass . |
Class<T> |
getClass(ClassLoader classLoader) |
String |
getClassName() |
String |
getCode() |
Object[] |
getReferences() |
static <T> T |
newInstance(Class<T> clazz,
Object[] references)
Create a new instance of this generated class.
|
T |
newInstance(ClassLoader classLoader)
Create a new instance of this generated class.
|
public T newInstance(ClassLoader classLoader)
public static <T> T newInstance(Class<T> clazz, Object[] references)
public Class<T> compile(ClassLoader classLoader)
GeneratedClass
.public String getClassName()
public String getCode()
public Object[] getReferences()
public Class<T> getClass(ClassLoader classLoader)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.