Search in sources :

Example 6 with AnnotationsList

use of com.taobao.android.dx.rop.annotation.AnnotationsList in project atlas by alibaba.

the class StdAttributeFactory method runtimeInvisibleParameterAnnotations.

/**
 * Parses a {@code RuntimeInvisibleParameterAnnotations} attribute.
 */
private Attribute runtimeInvisibleParameterAnnotations(DirectClassFile cf, int offset, int length, ParseObserver observer) {
    if (length < 2) {
        throwSeverelyTruncated();
    }
    AnnotationParser ap = new AnnotationParser(cf, offset, length, observer);
    AnnotationsList list = ap.parseParameterAttribute(AnnotationVisibility.BUILD);
    return new AttRuntimeInvisibleParameterAnnotations(list, length);
}
Also used : AnnotationsList(com.taobao.android.dx.rop.annotation.AnnotationsList) AttRuntimeInvisibleParameterAnnotations(com.taobao.android.dx.cf.attrib.AttRuntimeInvisibleParameterAnnotations)

Aggregations

AnnotationsList (com.taobao.android.dx.rop.annotation.AnnotationsList)6 Annotations (com.taobao.android.dx.rop.annotation.Annotations)4 EncodedMethod (com.taobao.android.dx.dex.file.EncodedMethod)3 CstString (com.taobao.android.dx.rop.cst.CstString)3 ConcreteMethod (com.taobao.android.dx.cf.code.ConcreteMethod)2 Method (com.taobao.android.dx.cf.iface.Method)2 MethodList (com.taobao.android.dx.cf.iface.MethodList)2 DalvCode (com.taobao.android.dx.dex.code.DalvCode)2 DexTranslationAdvice (com.taobao.android.dx.rop.code.DexTranslationAdvice)2 LocalVariableInfo (com.taobao.android.dx.rop.code.LocalVariableInfo)2 RopMethod (com.taobao.android.dx.rop.code.RopMethod)2 TranslationAdvice (com.taobao.android.dx.rop.code.TranslationAdvice)2 CstMethodRef (com.taobao.android.dx.rop.cst.CstMethodRef)2 CstType (com.taobao.android.dx.rop.cst.CstType)2 TypeList (com.taobao.android.dx.rop.type.TypeList)2 AttRuntimeInvisibleParameterAnnotations (com.taobao.android.dx.cf.attrib.AttRuntimeInvisibleParameterAnnotations)1 AttRuntimeVisibleParameterAnnotations (com.taobao.android.dx.cf.attrib.AttRuntimeVisibleParameterAnnotations)1 ClassDefItem (com.taobao.android.dx.dex.file.ClassDefItem)1 Annotation (com.taobao.android.dx.rop.annotation.Annotation)1 CstNat (com.taobao.android.dx.rop.cst.CstNat)1