public class CallbackInjector extends Injector
Injector.TargetNodeclassNode, info, isStatic, logger, methodArgs, methodNode, returnType| Constructor and Description |
|---|
CallbackInjector(InjectionInfo info,
boolean cancellable,
LocalCapture localCapture,
java.lang.String identifier)
Make a new CallbackInjector with the supplied args
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addTargetNode(Target target,
java.util.List<InjectionNodes.InjectionNode> myNodes,
org.spongepowered.asm.lib.tree.AbstractInsnNode node,
java.util.Set<InjectionPoint> nominators) |
protected void |
inject(Target target,
InjectionNodes.InjectionNode node) |
protected void |
injectCancellationCode(org.spongepowered.asm.mixin.injection.callback.CallbackInjector.Callback callback)
if (e.isCancelled()) return e.getReturnValue();
|
protected void |
injectReturnCode(org.spongepowered.asm.mixin.injection.callback.CallbackInjector.Callback callback)
Inject the appropriate return code for the method type
|
protected void |
instanceCallbackInfo(org.spongepowered.asm.mixin.injection.callback.CallbackInjector.Callback callback,
java.lang.String id,
java.lang.String desc,
boolean store) |
protected boolean |
isStatic()
Explicit to avoid creation of synthetic accessor
|
protected void |
sanityCheck(Target target,
java.util.List<InjectionPoint> injectionPoints) |
canCoerce, canCoerce, canCoerce, find, findTargetNodes, inject, invokeHandler, invokeHandler, postInject, throwException, toStringpublic CallbackInjector(InjectionInfo info, boolean cancellable, LocalCapture localCapture, java.lang.String identifier)
info - information about this injectorcancellable - True if injections performed by this injector should
be cancellablelocalCapture - Local variable capture behaviourprotected void sanityCheck(Target target, java.util.List<InjectionPoint> injectionPoints)
sanityCheck in class Injectorprotected void addTargetNode(Target target, java.util.List<InjectionNodes.InjectionNode> myNodes, org.spongepowered.asm.lib.tree.AbstractInsnNode node, java.util.Set<InjectionPoint> nominators)
addTargetNode in class Injectorprotected void inject(Target target, InjectionNodes.InjectionNode node)
protected void instanceCallbackInfo(org.spongepowered.asm.mixin.injection.callback.CallbackInjector.Callback callback,
java.lang.String id,
java.lang.String desc,
boolean store)
callback - callback handleid - callback iddesc - constructor descriptorstore - true if storing in a local, false if this is happening at an
invokeprotected void injectCancellationCode(org.spongepowered.asm.mixin.injection.callback.CallbackInjector.Callback callback)
callback - callback handleprotected void injectReturnCode(org.spongepowered.asm.mixin.injection.callback.CallbackInjector.Callback callback)
callback - callback handleprotected boolean isStatic()