public class ASMHelper extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ASMHelper.AnnotationVisitor |
static interface |
ASMHelper.ASMType |
static interface |
ASMHelper.ClassWriter |
static interface |
ASMHelper.FieldVisitor |
static interface |
ASMHelper.Label |
static interface |
ASMHelper.MethodVisitor |
static class |
ASMHelper.Opcodes |
static class |
ASMHelper.TypeHelperClassLoader |
Modifier and Type | Field and Description |
---|---|
protected static boolean |
badASM |
protected static Map<Class<?>,WeakReference<ASMHelper.TypeHelperClassLoader>> |
CLASS_MAP |
protected static Map<ClassLoader,WeakReference<ASMHelper.TypeHelperClassLoader>> |
LOADER_MAP |
protected static Map<Class<?>,String> |
NONPRIMITIVE_MAP |
protected static Map<Class<?>,String> |
PRIMITIVE_MAP |
protected static Map<Class<?>,Integer> |
PRIMITIVE_ZERO_MAP |
Constructor and Description |
---|
ASMHelper() |
Modifier and Type | Method and Description |
---|---|
ASMHelper.ClassWriter |
createClassWriter() |
ASMHelper.Label |
createLabel() |
Class<?> |
findClass(String className,
Class<?> clz) |
Class<?> |
findClass(String className,
ClassLoader l) |
static String |
getClassCode(Class<?> cl) |
static String |
getClassCode(Type type) |
protected static String |
getMethodSignature(Method m) |
ASMHelper.ASMType |
getType(String type) |
Class<?> |
loadClass(String className,
Class<?> clz,
byte[] bytes) |
Class<?> |
loadClass(String className,
ClassLoader l,
byte[] bytes) |
static String |
periodToSlashes(String s) |
protected static final Map<ClassLoader,WeakReference<ASMHelper.TypeHelperClassLoader>> LOADER_MAP
protected static final Map<Class<?>,WeakReference<ASMHelper.TypeHelperClassLoader>> CLASS_MAP
protected static boolean badASM
public ASMHelper.ClassWriter createClassWriter()
public Class<?> loadClass(String className, ClassLoader l, byte[] bytes)
public Class<?> findClass(String className, ClassLoader l)
public ASMHelper.ASMType getType(String type)
public ASMHelper.Label createLabel()
Apache CXF