public class BytecodeHelper extends Object
| Constructor and Description |
|---|
BytecodeHelper() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
instantiate(Class<T> type,
String className,
org.fabric3.spi.classloader.BytecodeClassLoader classLoader,
org.objectweb.asm.ClassWriter cw)
Instantiates an instance of the class.
|
static void |
writeConstructor(org.objectweb.asm.ClassWriter cw,
Class<?> superType)
Creates a no-args constructor.
|
public static void writeConstructor(org.objectweb.asm.ClassWriter cw,
Class<?> superType)
cw - the class writerpublic static <T> T instantiate(Class<T> type, String className, org.fabric3.spi.classloader.BytecodeClassLoader classLoader, org.objectweb.asm.ClassWriter cw)
type - the expected typeclassName - the class nameclassLoader - the classloader defining the classcw - the class writerCopyright © 2007-2013 Metaform Systems.