Examples of OpcodeData


Examples of com.litecoding.smali2java.entity.smali.OpcodeData

      prevSlice = currSlice;
      currSlice = timeline.getSlice(i);
     
      //filling type of destination register
      String dstType = "(UNKNOWN)";
      OpcodeData opcodeData = instruction.getOpcodeData();
      if(opcodeData.getType() == OpcodeData.TYPE_GET) {
        //TODO: handle aget*
        List<SmaliCodeEntity> args = instruction.getArguments();
        FieldRef srcField = (FieldRef) args.get(args.size() - 1);
        dstType = srcField.getType();
      } else if(opcodeData.getType() == OpcodeData.TYPE_CONST) {
        if(opcodeData.getOpcode() == Opcodes.OP_CONST_STRING)
          dstType = "Ljava/lang/String;";
        else
          dstType = "(BY CONST)";
      } else if(opcodeData.getType() == OpcodeData.TYPE_NEW) {
        if(opcodeData.getOpcode() == Opcodes.OP_NEW_INSTANCE) {
          List<SmaliCodeEntity> args = instruction.getArguments();
          ClassRef srcClass = (ClassRef) args.get(args.size() - 1);
          dstType = srcClass.getName();
        } else
          dstType = "(BY NEW)";
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.