public final class GeneratorUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GeneratorUtils.LocalClassLoader |
Modifier and Type | Method and Description |
---|---|
static String |
getClassName(String targetPackage,
Class<?> clazz,
String classifier)
Gets a class name with the provided classifier.
|
static void |
visitBoxingMethod(org.objectweb.asm.MethodVisitor mv,
org.objectweb.asm.Type type)
Insert the necessary methods to box a primitive type (if the given type
is a primitive object).
|
static void |
visitUnboxingMethod(org.objectweb.asm.MethodVisitor mv,
org.objectweb.asm.Type type)
Insert the necessary methods to unbox a primitive type (if the given type
is a primitive).
|
public static String getClassName(String targetPackage, Class<?> clazz, String classifier)
targetPackage
- The target packageclazz
- The parent classclassifier
- The classifierpublic static void visitBoxingMethod(org.objectweb.asm.MethodVisitor mv, org.objectweb.asm.Type type)
mv
- The method visitortype
- The type to unboxpublic static void visitUnboxingMethod(org.objectweb.asm.MethodVisitor mv, org.objectweb.asm.Type type)
mv
- The method visitortype
- The type to unbox