public abstract class GeneratedClass<T> extends Object implements Serializable
newInstance(ClassLoader)
method to get an
instance by reference objects easily.Modifier | Constructor and Description |
---|---|
protected |
GeneratedClass(String className,
String code,
Object[] references,
ReadableConfig config) |
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() |
T |
newInstance(ClassLoader classLoader)
Create a new instance of this generated class.
|
T |
newInstance(ClassLoader classLoader,
Object... args) |
protected GeneratedClass(String className, String code, Object[] references, ReadableConfig config)
public T newInstance(ClassLoader classLoader)
public T newInstance(ClassLoader classLoader, Object... args)
public Class<T> compile(ClassLoader classLoader)
GeneratedClass
.public String getClassName()
public String getCode()
public Object[] getReferences()
public Class<T> getClass(ClassLoader classLoader)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.