public class MethodInjector extends MethodTransformer
| Modifier and Type | Field and Description |
|---|---|
boolean |
before |
ASMBlock |
injection |
ASMBlock |
needle |
methodwriteFlags| Constructor and Description |
|---|
MethodInjector(ObfMapping method,
ASMBlock needle,
ASMBlock injection,
boolean before)
Injects the provided injection instructions at the location of the needle.
|
MethodInjector(ObfMapping method,
ASMBlock injection,
boolean before)
Injects the provided injection to the beginning or end of the method.
|
MethodInjector(ObfMapping method,
org.objectweb.asm.tree.InsnList injection,
boolean before)
Injects the provided injection to the beginning or end of the method.
|
MethodInjector(ObfMapping method,
org.objectweb.asm.tree.InsnList needle,
org.objectweb.asm.tree.InsnList injection,
boolean before)
Injects the provided injection instructions at the location of the needle.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMethodsToSort(java.util.Set<ObfMapping> set) |
void |
transform(org.objectweb.asm.tree.MethodNode mv) |
className, transform@Nullable public ASMBlock needle
@Nonnull public ASMBlock injection
public boolean before
public MethodInjector(@Nonnull
ObfMapping method,
@Nullable
ASMBlock needle,
@Nonnull
ASMBlock injection,
boolean before)
method - The method to inject to.needle - Where to inject.injection - The injection to apply.before - Weather to apply before or after the provided needle.public MethodInjector(@Nonnull
ObfMapping method,
@Nonnull
ASMBlock injection,
boolean before)
method - The method to inject to.injection - The injection to apply.before - Weather to apply at the start of the method or the end.public MethodInjector(@Nonnull
ObfMapping method,
@Nonnull
org.objectweb.asm.tree.InsnList needle,
@Nonnull
org.objectweb.asm.tree.InsnList injection,
boolean before)
method - The method to inject to.needle - Where to inject.injection - The injection to apply.before - Weather to apply before or after the provided needle.public MethodInjector(@Nonnull
ObfMapping method,
@Nonnull
org.objectweb.asm.tree.InsnList injection,
boolean before)
method - The method to inject to.injection - The injection to apply.before - Weather to apply at the start of the method or the end.public void addMethodsToSort(java.util.Set<ObfMapping> set)
addMethodsToSort in class ClassNodeTransformerpublic void transform(org.objectweb.asm.tree.MethodNode mv)
transform in class MethodTransformer