public class InjectionCallbackReplacer
extends java.lang.Object
| Constructor and Description |
|---|
InjectionCallbackReplacer() |
| Modifier and Type | Method and Description |
|---|---|
static void |
replaceCallback(org.objectweb.asm.tree.ClassNode classNode)
Replace all
InjectionCallback instances with an Object[].This can be used if the InjectionCallback class is not available in the target environment.The object array will contain the following values: {cancellable, cancelled, returnValue, returnValueSet}All important checks from the InjectionCallback class are also included in the replacement. |
public static void replaceCallback(org.objectweb.asm.tree.ClassNode classNode)
InjectionCallback instances with an Object[].InjectionCallback class is not available in the target environment.{cancellable, cancelled, returnValue, returnValueSet}InjectionCallback class are also included in the replacement.classNode - The ClassNode to replace the InjectionCallback instances in