Class InsnRemover


  • public class InsnRemover
    extends java.lang.Object
    Helper class for correct instructions removing, can be used while iterating over instructions list
    • 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)
      • 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)