Package com.android.dx.cf.attrib

Examples of com.android.dx.cf.attrib.AttSignature


        ByteArray bytes = cf.getBytes();
        ConstantPool pool = cf.getConstantPool();
        int idx = bytes.getUnsignedShort(offset);
        CstUtf8 cst = (CstUtf8) pool.get(idx);
        Attribute result = new AttSignature(cst);

        if (observer != null) {
            observer.parsed(bytes, offset, 2, "signature: " + cst);
        }
View Full Code Here


     * @param attribs {@code non-null;} the attributes list to search in
     * @return {@code null-ok;} the converted {@code Signature} annotation,
     * if there was an attribute to translate
     */
    private static Annotation getSignature(AttributeList attribs) {
        AttSignature signature = (AttSignature)
            attribs.findFirst(AttSignature.ATTRIBUTE_NAME);

        if (signature == null) {
            return null;
        }

        return AnnotationUtils.makeSignature(signature.getSignature());
    }
View Full Code Here

        classElement.setAttribute("enclosingMethod", enclosingMethod.toHuman());
      }
    }

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

    if (signatureAnnotation != null)
    {
      classElement.setAttribute("signature", signatureAnnotation.getSignature().toHuman());
    }

    // This can happen for java.lang.Object.
    if (cf.getSuperclass() != null)
    {
View Full Code Here

TOP

Related Classes of com.android.dx.cf.attrib.AttSignature

Copyright © 2018 www.massapicom. 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.