package team.unstudio.udpl.util.extra;

public class ASMClassLoader extends ClassLoader{

	public ASMClassLoader() {
	}
	
	public ASMClassLoader(ClassLoader parent) {
		super(parent);
	}
	
	public Class<?> loadClass(byte[] b) {
		return loadClass(null, b, 0, b.length);
	}
	
	public Class<?> loadClass(String name, byte[] b, int off, int len) {
		return defineClass(name, b, off, len);
	}
}

@@ -82,16 +82,17 @@
 ssLoader
+ 
 %7B%0D%0A%0D%0A%09pu
@@ -116,25 +116,24 @@
 er() %7B%0D%0A%09%7D%0D%0A
-%09
 %0D%0A%09public AS
@@ -182,33 +182,32 @@
 r(parent);%0D%0A%09%7D%0D%0A
-%09
 %0D%0A%09public Class%3C
@@ -256,16 +256,107 @@
 ss(null,
+ b);%0D%0A%09%7D%0D%0A%0D%0A%09public Class%3C?%3E loadClass(String name, byte%5B%5D b) %7B%0D%0A%09%09return defineClass(name,
  b, 0, b
@@ -370,17 +370,16 @@
 );%0D%0A%09%7D%0D%0A
-%09
 %0D%0A%09publi
@@ -441,30 +441,40 @@
 t len) %7B%0D%0A%09%09
-return
+Class%3C?%3E clazz =
  defineClass
@@ -491,19 +491,197 @@
 off, len);%0D%0A
+%09%09return clazz;%0D%0A%09%7D%0D%0A%0D%0A%09public boolean hasClass(String name) %7B%0D%0A%09%09try %7B%0D%0A%09%09%09Class.forName(name);%0D%0A%09%09%09return true;%0D%0A%09%09%7D catch (ClassNotFoundException e) %7B%0D%0A%09%09%09return false;%0D%0A%09%09%7D%0D%0A
 %09%7D%0D%0A%7D%0D%0A

Update ASMClassLoader