Package jadx.core.utils
Class InsnRemover
- java.lang.Object
-
- jadx.core.utils.InsnRemover
-
public class InsnRemover extends java.lang.ObjectHelper class for correct instructions removing, can be used while iterating over instructions list
-
-
Constructor Summary
Constructors Constructor Description InsnRemover(MethodNode mth)InsnRemover(MethodNode mth, BlockNode block)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAndUnbind(InsnNode insn)voidaddWithoutUnbind(InsnNode insn)voidperform()voidperformForBlock(BlockNode block)static voidremove(MethodNode mth, @Nullable InsnNode insn)static voidremove(MethodNode mth, BlockNode block, int index)static voidremove(MethodNode mth, BlockNode block, InsnNode insn)static voidremoveAllAndUnbind(MethodNode mth, BlockNode block, java.util.List<InsnNode> insns)static voidremoveAllAndUnbind(MethodNode mth, IContainer container, java.util.List<InsnNode> insns)static voidremoveAllAndUnbind(MethodNode mth, java.util.List<InsnNode> insns)static voidremoveAllMarked(MethodNode mth)static voidremoveAllWithoutUnbind(BlockNode block, java.util.List<InsnNode> insns)static booleanremoveWithoutUnbind(MethodNode mth, BlockNode block, InsnNode insn)voidsetBlock(BlockNode block)static voidunbindAllArgs(@Nullable MethodNode mth, InsnNode insn)static voidunbindArgUsage(@Nullable MethodNode mth, InsnArg arg)static voidunbindInsn(@Nullable MethodNode mth, InsnNode insn)static voidunbindInsns(@Nullable MethodNode mth, java.util.List<InsnNode> insns)static voidunbindResult(@Nullable MethodNode mth, InsnNode insn)
-
-
-
Constructor Detail
-
InsnRemover
public InsnRemover(MethodNode mth)
-
InsnRemover
public InsnRemover(MethodNode mth, BlockNode block)
-
-
Method Detail
-
setBlock
public void setBlock(BlockNode block)
-
addAndUnbind
public void addAndUnbind(InsnNode insn)
-
addWithoutUnbind
public void addWithoutUnbind(InsnNode insn)
-
perform
public void perform()
-
performForBlock
public void performForBlock(BlockNode block)
-
unbindInsn
public static void unbindInsn(@Nullable @Nullable MethodNode mth, InsnNode insn)
-
unbindInsns
public static void unbindInsns(@Nullable @Nullable MethodNode mth, java.util.List<InsnNode> insns)
-
unbindAllArgs
public static void unbindAllArgs(@Nullable @Nullable MethodNode mth, InsnNode insn)
-
unbindResult
public static void unbindResult(@Nullable @Nullable MethodNode mth, InsnNode insn)
-
unbindArgUsage
public static void unbindArgUsage(@Nullable @Nullable MethodNode mth, InsnArg arg)
-
remove
public static void remove(MethodNode mth, @Nullable @Nullable InsnNode insn)
-
remove
public static void remove(MethodNode mth, BlockNode block, InsnNode insn)
-
removeWithoutUnbind
public static boolean removeWithoutUnbind(MethodNode mth, BlockNode block, InsnNode insn)
-
removeAllAndUnbind
public static void removeAllAndUnbind(MethodNode mth, BlockNode block, java.util.List<InsnNode> insns)
-
removeAllAndUnbind
public static void removeAllAndUnbind(MethodNode mth, IContainer container, java.util.List<InsnNode> insns)
-
removeAllAndUnbind
public static void removeAllAndUnbind(MethodNode mth, java.util.List<InsnNode> insns)
-
removeAllWithoutUnbind
public static void removeAllWithoutUnbind(BlockNode block, java.util.List<InsnNode> insns)
-
removeAllMarked
public static void removeAllMarked(MethodNode mth)
-
remove
public static void remove(MethodNode mth, BlockNode block, int index)
-
-