Examples of toHuman()


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

            return parse0(cf, context, name.getString(), offset + 6, length,
                          observer);
        } catch (ParseException ex) {
            ex.addContext("...while parsing " +
                    ((name != null) ? (name.toHuman() + " ") : "") +
                    "attribute at offset " + Hex.u4(offset));
            throw ex;
        }
    }
View Full Code Here

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

                                    "access_flags: " +
                                    humanAccessFlags(accessFlags));
                    observer.parsed(bytes, at + 2, 2,
                                    "name: " + name.toHuman());
                    observer.parsed(bytes, at + 4, 2,
                                    "descriptor: " + desc.toHuman());
                }

                at += 6;
                AttributeListParser parser =
                    new AttributeListParser(cf, attributeContext, at,
View Full Code Here

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

        CstUtf8 name = e.getName();
        if (name == null) {
            sb.append("null");
        } else {
            sb.append(name.toHuman());
        }
        sb.append(' ');

        CstType type = e.getType();
        if (type == null) {
View Full Code Here

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

        CstUtf8 signature = e.getSignature();

        if (signature != null) {
            sb.append(' ');
            sb.append(signature.toHuman());
        }

        return sb.toString();
    }
View Full Code Here

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

        for (NameValuePair pair : annotation.getNameValuePairs()) {
            CstUtf8 name = pair.getName();
            Constant value = pair.getValue();

            out.annotate(0, prefix + name.toHuman() + ": " +
                    ValueEncoder.constantToHuman(value));
        }
    }

    /** {@inheritDoc} */
 
View Full Code Here

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

           
            if (annotates) {
                out.annotate(0, "  elements[" + at + "]:");
                at++;
                out.annotate("    name_idx: " + Hex.u4(nameIdx) + " // " +
                        name.toHuman());
            }

            out.writeUnsignedLeb128(nameIdx);

            if (annotates) {
View Full Code Here

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

      CstUtf8 sourceFile= sourcePosition.getSourceFile();
      int sourceLine= sourcePosition.getLine();
      if (sourceFile != null && !sourceLinesAlreadyPut.contains(sourceLine))
      {
        dexInstruction= new Element("source-position", NS_XMLVM);
        dexInstruction.setAttribute("file", sourceFile.toHuman());
        dexInstruction.setAttribute("line", String.valueOf(sourceLine));
        sourceLinesAlreadyPut.add(sourceLine);
      }
    }
    else if (instruction instanceof LocalSnapshot)
View Full Code Here

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

          constValue= ((CstString) value).getString().getString();
          encodeString(fieldElement, constValue);
        }
        else
        {
          constValue= value.toHuman();
          fieldElement.setAttribute("value", constValue);
        }
      }
      processAccessFlags(field.getAccessFlags(), fieldElement);
      classElement.addContent(fieldElement);
View Full Code Here

Examples of com.android.dx.rop.type.Type.toHuman()

                case ByteOps.ARRAYLENGTH: {
                    Type arrayType = frame.getStack().peekType(0);
                    if (!arrayType.isArrayOrKnownNull()) {
                        throw new SimException("type mismatch: expected " +
                                "array type but encountered " +
                                arrayType.toHuman());
                    }
                    machine.popArgs(frame, Type.OBJECT);
                    break;
                }
                case ByteOps.ATHROW:
View Full Code Here

Examples of com.android.dx.rop.type.Type.toHuman()

             * takes care of all the salient cases (types are the same,
             * they're compatible primitive types, etc.).
             */
            if (! Merger.isPossiblyAssignableFrom(returnType, encountered)) {
                throw new SimException("return type mismatch: prototype " +
                        "indicates " + returnType.toHuman() +
                        ", but encountered type " + encountered.toHuman());
            }
        }

        /** {@inheritDoc} */
 
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.