Package com.android.dx.rop.cst

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


        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

        CstType type = annotation.getType();
       
        if (annotations.containsKey(type)) {
            throw new IllegalArgumentException("duplicate type: " +
                    type.toHuman());
        }

        annotations.put(type, annotation);
    }
View Full Code Here

        CstType type = e.getType();
        if (type == null) {
            sb.append("null");
        } else {
            sb.append(type.toHuman());
        }

        CstUtf8 signature = e.getSignature();

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

        CstType type = annotation.getType();
        int typeIdx = typeIds.indexOf(type);

        if (annotates) {
            out.annotate("  type_idx: " + Hex.u4(typeIdx) + " // " +
                    type.toHuman());
        }
                   
        out.writeUnsignedLeb128(typeIds.indexOf(annotation.getType()));

        Collection<NameValuePair> pairs = annotation.getNameValuePairs();
View Full Code Here

                ByteCatchList.Item one = catches.get(j);
                CstType exceptionClass = one.getExceptionClass();
                parsed(bytes, end, 0,
                       "catch " +
                       ((exceptionClass == CstType.OBJECT) ? "<any>" :
                        exceptionClass.toHuman()) + " -> " +
                       Hex.u2(one.getHandlerPc()));
            }

            changeIndent(-1);
            byteAt = end;
View Full Code Here

    {
      CstType enclosingClass= enclosingMethodAnnotation.getEnclosingClass();
      CstNat enclosingMethod= enclosingMethodAnnotation.getMethod();
      if (enclosingClass != null)
      {
        addReference(referencedTypes, enclosingClass.toHuman(), ReferenceKind.USAGE);
        classElement.setAttribute("enclosingClass", enclosingClass.toHuman());
      }
      if (enclosingMethod != null)
      {
        classElement.setAttribute("enclosingMethod", enclosingMethod.toHuman());
View Full Code Here

      CstType enclosingClass= enclosingMethodAnnotation.getEnclosingClass();
      CstNat enclosingMethod= enclosingMethodAnnotation.getMethod();
      if (enclosingClass != null)
      {
        addReference(referencedTypes, enclosingClass.toHuman(), ReferenceKind.USAGE);
        classElement.setAttribute("enclosingClass", enclosingClass.toHuman());
      }
      if (enclosingMethod != null)
      {
        classElement.setAttribute("enclosingMethod", enclosingMethod.toHuman());
      }
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.