java.lang.Object
org.simpleflatmapper.reflect.asm.AsmUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddIndex(org.simpleflatmapper.ow2asm.MethodVisitor mv, int i) static TypefindClosestPublicTypeExposing(Type type, Class<?> expose) static TypefindTypeInHierarchy(Type type, org.simpleflatmapper.util.Predicate<Type> predicate) static intgetLoadOps(Class<?> parameterType) static intgetStoreOps(Class<?> type) static voidstatic voidstatic Stringstatic Stringstatic StringtoGenericAsmType(Type type) static TypetoGenericType(String sig, List<String> genericTypeNames, Type target) static StringtoSignature(Method exec) static StringtoTargetTypeDeclaration(Type targetType) static StringtoTargetTypeDeclaration(String targetType) static Class<?>toWrapperClass(Type type) static StringtoWrapperType(Type type) static byte[]writeClassToFile(String className, byte[] bytes) static byte[]writeClassToFileInDir(String className, byte[] bytes, File targetDir)
-
Field Details
-
ASM_DUMP_TARGET_DIR
- See Also:
-
EMPTY_TYPE_ARRAY
-
API
public static final int API
-
-
Constructor Details
-
AsmUtils
public AsmUtils()
-
-
Method Details
-
toAsmType
-
toAsmType
-
toTargetTypeDeclaration
-
toTargetTypeDeclaration
-
toGenericAsmType
-
writeClassToFile
- Throws:
IOException
-
writeClassToFileInDir
public static byte[] writeClassToFileInDir(String className, byte[] bytes, File targetDir) throws IOException - Throws:
IOException
-
toGenericType
public static Type toGenericType(String sig, List<String> genericTypeNames, Type target) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
findClosestPublicTypeExposing
-
findTypeInHierarchy
-
invoke
-
invoke
-
toWrapperClass
-
toWrapperType
-
extractGenericTypeNames
-
extractTypeNamesFromSignature
-
toSignature
-
getLoadOps
-
getStoreOps
-
addIndex
public static void addIndex(org.simpleflatmapper.ow2asm.MethodVisitor mv, int i)
-