Examples of toHuman()


Examples of com.android.dx.dex.code.CatchHandlerList.toHuman()

        for (int i = 0; i < size; i++) {
            CatchTable.Entry entry = table.get(i);
            CatchHandlerList handlers = entry.getHandlers();
            String s1 = subPrefix + "try " + Hex.u2or4(entry.getStart())
                + ".." + Hex.u2or4(entry.getEnd());
            String s2 = handlers.toHuman(subPrefix, "");

            if (consume) {
                annotateTo.annotate(amt1, s1);
                annotateTo.annotate(amt2, s2);
            } else {
View Full Code Here

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

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.toHuman();
    }

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

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

        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

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

        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

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

          // 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

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

          {
            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

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

        addReference(referencedTypes, enclosingClass.toHuman(), ReferenceKind.USAGE);
        classElement.setAttribute("enclosingClass", enclosingClass.toHuman());
      }
      if (enclosingMethod != null)
      {
        classElement.setAttribute("enclosingMethod", enclosingMethod.toHuman());
      }
    }

    // get signature annotation if availabke
    AttSignature signatureAnnotation= (AttSignature) cf.getAttributes().findFirst(AttSignature.ATTRIBUTE_NAME);
View Full Code Here

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

            if (observer != null) {
                observer.parsed(bytes, offset, 8,
                                Hex.u2(startPc) + ".." + Hex.u2(endPc) +
                                " -> " + Hex.u2(handlerPc) + " " +
                                ((catchType == null) ? "<any>" :
                                 catchType.toHuman()));
            }
            offset += 8;
            length -= 8;

            if (observer != null) {
View Full Code Here

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

        int numElements = input.readUnsignedShort();
        CstUtf8 typeUtf8 = (CstUtf8) pool.get(typeIndex);
        CstType type = new CstType(Type.intern(typeUtf8.getString()));

        if (observer != null) {
            parsed(2, "type: " + type.toHuman());
            parsed(2, "num_elements: " + numElements);
        }

        Annotation annotation = new Annotation(type, visibility);
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.