public class MethodReplacer extends MethodTransformer
| Modifier and Type | Field and Description |
|---|---|
ASMBlock |
needle |
ASMBlock |
replacement |
methodwriteFlags| Constructor and Description |
|---|
MethodReplacer(ObfMapping method,
ASMBlock needle,
ASMBlock replacement)
Replaces the provided needle with the provided replacement.
|
MethodReplacer(ObfMapping method,
org.objectweb.asm.tree.InsnList needle,
org.objectweb.asm.tree.InsnList replacement)
Replaces the provided needle with the provided replacement.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMethodsToSort(java.util.Set<ObfMapping> set) |
void |
transform(org.objectweb.asm.tree.MethodNode mv) |
className, transformpublic MethodReplacer(@Nonnull
ObfMapping method,
@Nonnull
ASMBlock needle,
@Nonnull
ASMBlock replacement)
method - The method to replace in.needle - The needle to replace.replacement - The replacement to apply.public MethodReplacer(@Nonnull
ObfMapping method,
@Nonnull
org.objectweb.asm.tree.InsnList needle,
@Nonnull
org.objectweb.asm.tree.InsnList replacement)
method - The method to replace in.needle - The needle to replace.replacement - The replacement to apply.public void addMethodsToSort(java.util.Set<ObfMapping> set)
addMethodsToSort in class ClassNodeTransformerpublic void transform(org.objectweb.asm.tree.MethodNode mv)
transform in class MethodTransformer