Class InjectionUtil
java.lang.Object
io.github.stanikoc.eventsystem.util.InjectionUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidinjectListenerTypes(File file, ClassLoader loader, Class<?> primary, Class<?> secondary) static voidmodifyClass(File file, ClassLoader loader, Function<org.objectweb.asm.ClassWriter, org.objectweb.asm.ClassVisitor> visitorProvider) static voidstripBaseListener(File file, ClassLoader loader)
-
Method Details
-
stripBaseListener
-
injectListenerTypes
public static void injectListenerTypes(File file, ClassLoader loader, Class<?> primary, Class<?> secondary) -
modifyClass
public static void modifyClass(File file, ClassLoader loader, Function<org.objectweb.asm.ClassWriter, org.objectweb.asm.ClassVisitor> visitorProvider) throws IOException- Throws:
IOException
-