Package com.android.dx.rop.cst

Examples of com.android.dx.rop.cst.Constant.toHuman()


     */
    protected static String cstString(DalvInsn insn) {
        CstInsn ci = (CstInsn) insn;
        Constant cst = ci.getConstant();

        return cst instanceof CstString ? ((CstString) cst).toQuoted() : cst.toHuman();
    }

    /**
     * Helper method to return an instruction comment for a constant.
     *
 
View Full Code Here


     */
    protected static String cstString(DalvInsn insn) {
        CstInsn ci = (CstInsn) insn;
        Constant cst = ci.getConstant();

        return cst.toHuman();
    }

    /**
     * Helper method to return an instruction comment for a constant.
     *
 
View Full Code Here

        Constant value = (Constant) pool.get(constValueIndex);

        if (observer != null) {
            String human = (value instanceof CstUtf8)
                ? ((CstUtf8) value).toQuoted()
                : value.toHuman();
            parsed(2, "constant_value: " + human);
        }

        return value;
    }
View Full Code Here

        else
        {
          // These are CstInsn instructions that we need to remove, if
          // their constant is a red type.
          List<String> instructionsToCheck= Arrays.asList(new String[] { "new-instance", "instance-of", "check-cast", "const-class", "new-array" });
          if (instructionsToCheck.contains(opname) && isRedType(constant.toHuman()))
          {
            dexInstruction= createAssertElement(constant.toHuman(), opname);
          }
          else
          {
View Full Code Here

          // These are CstInsn instructions that we need to remove, if
          // their constant is a red type.
          List<String> instructionsToCheck= Arrays.asList(new String[] { "new-instance", "instance-of", "check-cast", "const-class", "new-array" });
          if (instructionsToCheck.contains(opname) && isRedType(constant.toHuman()))
          {
            dexInstruction= createAssertElement(constant.toHuman(), opname);
          }
          else
          {
            dexInstruction.setAttribute("value", constant.toHuman());
          }
View Full Code Here

          {
            dexInstruction= createAssertElement(constant.toHuman(), opname);
          }
          else
          {
            dexInstruction.setAttribute("value", constant.toHuman());
          }
        }
        if (cstInsn.getOpcode().getName().startsWith("filled-new-array"))
        {
          addRegistersAsChildren(cstInsn.getRegisters(), dexInstruction);
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.