public class AsmUtils extends Object
Modifier and Type | Field and Description |
---|---|
static int |
API |
static String |
ASM_DUMP_TARGET_DIR |
static Type[] |
EMPTY_TYPE_ARRAY |
Constructor and Description |
---|
AsmUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addIndex(org.simpleflatmapper.ow2asm.MethodVisitor mv,
int i) |
static List<String> |
extractGenericTypeNames(String sig) |
static List<String> |
extractTypeNamesFromSignature(String sig) |
static Type |
findClosestPublicTypeExposing(Type type,
Class<?> expose) |
static Type |
findTypeInHierarchy(Type type,
org.simpleflatmapper.util.Predicate<Type> predicate) |
static int |
getLoadOps(Class<?> parameterType) |
static int |
getStoreOps(Class<?> type) |
static void |
invoke(org.simpleflatmapper.ow2asm.MethodVisitor mv,
Method method) |
static void |
invoke(org.simpleflatmapper.ow2asm.MethodVisitor mv,
Type target,
String method,
String sig) |
static String |
toAsmType(String name) |
static String |
toAsmType(Type type) |
static String |
toGenericAsmType(Type type) |
static Type |
toGenericType(String sig,
List<String> genericTypeNames,
Type target) |
static String |
toSignature(Method exec) |
static String |
toTargetTypeDeclaration(String targetType) |
static String |
toTargetTypeDeclaration(Type targetType) |
static Class<?> |
toWrapperClass(Type type) |
static String |
toWrapperType(Type type) |
static byte[] |
writeClassToFile(String className,
byte[] bytes) |
static byte[] |
writeClassToFileInDir(String className,
byte[] bytes,
File targetDir) |
public static final String ASM_DUMP_TARGET_DIR
public static final Type[] EMPTY_TYPE_ARRAY
public static final int API
public static byte[] writeClassToFile(String className, byte[] bytes) throws IOException
IOException
public static byte[] writeClassToFileInDir(String className, byte[] bytes, File targetDir) throws IOException
IOException
public static Type toGenericType(String sig, List<String> genericTypeNames, Type target) throws ClassNotFoundException
ClassNotFoundException
public static Type findClosestPublicTypeExposing(Type type, Class<?> expose)
public static Type findTypeInHierarchy(Type type, org.simpleflatmapper.util.Predicate<Type> predicate)
public static void invoke(org.simpleflatmapper.ow2asm.MethodVisitor mv, Method method)
public static void invoke(org.simpleflatmapper.ow2asm.MethodVisitor mv, Type target, String method, String sig)
public static int getLoadOps(Class<?> parameterType)
public static int getStoreOps(Class<?> type)
public static void addIndex(org.simpleflatmapper.ow2asm.MethodVisitor mv, int i)
Copyright © 2019. All rights reserved.