Search in sources :

Example 6 with AttributeList

use of com.taobao.android.dx.cf.iface.AttributeList in project atlas by alibaba.

the class DirectClassFile method getSourceFile.

/** {@inheritDoc} */
public CstString getSourceFile() {
    AttributeList attribs = getAttributes();
    Attribute attSf = attribs.findFirst(AttSourceFile.ATTRIBUTE_NAME);
    if (attSf instanceof AttSourceFile) {
        return ((AttSourceFile) attSf).getSourceFile();
    }
    return null;
}
Also used : Attribute(com.taobao.android.dx.cf.iface.Attribute) AttributeList(com.taobao.android.dx.cf.iface.AttributeList) StdAttributeList(com.taobao.android.dx.cf.iface.StdAttributeList) AttSourceFile(com.taobao.android.dx.cf.attrib.AttSourceFile)

Aggregations

AttributeList (com.taobao.android.dx.cf.iface.AttributeList)6 AttRuntimeInvisibleParameterAnnotations (com.taobao.android.dx.cf.attrib.AttRuntimeInvisibleParameterAnnotations)2 AttRuntimeVisibleParameterAnnotations (com.taobao.android.dx.cf.attrib.AttRuntimeVisibleParameterAnnotations)2 Attribute (com.taobao.android.dx.cf.iface.Attribute)2 Annotation (com.taobao.android.dx.rop.annotation.Annotation)2 CstType (com.taobao.android.dx.rop.cst.CstType)2 AttAnnotationDefault (com.taobao.android.dx.cf.attrib.AttAnnotationDefault)1 AttEnclosingMethod (com.taobao.android.dx.cf.attrib.AttEnclosingMethod)1 AttExceptions (com.taobao.android.dx.cf.attrib.AttExceptions)1 AttRuntimeInvisibleAnnotations (com.taobao.android.dx.cf.attrib.AttRuntimeInvisibleAnnotations)1 AttRuntimeVisibleAnnotations (com.taobao.android.dx.cf.attrib.AttRuntimeVisibleAnnotations)1 AttSourceFile (com.taobao.android.dx.cf.attrib.AttSourceFile)1 BaseAnnotations (com.taobao.android.dx.cf.attrib.BaseAnnotations)1 ClassPathOpener (com.taobao.android.dx.cf.direct.ClassPathOpener)1 DirectClassFile (com.taobao.android.dx.cf.direct.DirectClassFile)1 Method (com.taobao.android.dx.cf.iface.Method)1 MethodList (com.taobao.android.dx.cf.iface.MethodList)1 StdAttributeList (com.taobao.android.dx.cf.iface.StdAttributeList)1 Annotations (com.taobao.android.dx.rop.annotation.Annotations)1 NameValuePair (com.taobao.android.dx.rop.annotation.NameValuePair)1