public class CodeGeneratorUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static Class<?> |
makeClass(String name,
byte[] def,
Class<?> anchorClass)
Defines a class in the same classloader as a specified "anchor" class
|
static Class<?> |
makeClass(String name,
byte[] def,
ProtectionDomain pd,
ClassLoader loader)
Deprecated.
as of Java 11, use #makeClass(String,byte[],Class)
|
@Deprecated public static Class<?> makeClass(String name, byte[] def, ProtectionDomain pd, ClassLoader loader)
name - the name of the class to definedef - the byte-code definition of the new classpd - the protection domainloader - the classloader in which to define the classpublic static Class<?> makeClass(String name, byte[] def, Class<?> anchorClass)
name - the name of the class to definedef - the byte-code definition of the new classanchorClass - an existing class in the desired classloaderCopyright © 2011–2021 Eclipse Foundation. All rights reserved.