Package jadx.core.dex.nodes

Examples of jadx.core.dex.nodes.InsnNode.copyAttributesFrom()


    InsnNode insn = new InsnNode(returnInsn.getType(), returnInsn.getArgsCount());
    if (returnInsn.getArgsCount() == 1) {
      RegisterArg arg = (RegisterArg) returnInsn.getArg(0);
      insn.addArg(InsnArg.reg(arg.getRegNum(), arg.getType()));
    }
    insn.copyAttributesFrom(returnInsn);
    insn.setOffset(returnInsn.getOffset());
    insn.setSourceLine(returnInsn.getSourceLine());
    return insn;
  }
View Full Code Here


      // replace 'move' with inner wrapped instruction
      if (insn.getType() == InsnType.MOVE
          && insn.getArg(0).isInsnWrap()) {
        InsnNode wrapInsn = ((InsnWrapArg) insn.getArg(0)).getWrapInsn();
        wrapInsn.setResult(insn.getResult());
        wrapInsn.copyAttributesFrom(insn);
        list.set(i, wrapInsn);
      }
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.