Search in sources :

Example 1 with Annotation

use of com.taobao.android.dex.Annotation in project atlas by alibaba.

the class IndexMap method adjust.

public Annotation adjust(Annotation annotation) {
    ByteArrayAnnotatedOutput out = new ByteArrayAnnotatedOutput(32);
    new EncodedValueTransformer(out).transformAnnotation(annotation.getReader());
    return new Annotation(target, annotation.getVisibility(), new EncodedValue(out.toByteArray()));
}
Also used : EncodedValue(com.taobao.android.dex.EncodedValue) ByteArrayAnnotatedOutput(com.taobao.android.dx.util.ByteArrayAnnotatedOutput) Annotation(com.taobao.android.dex.Annotation)

Aggregations

Annotation (com.taobao.android.dex.Annotation)1 EncodedValue (com.taobao.android.dex.EncodedValue)1 ByteArrayAnnotatedOutput (com.taobao.android.dx.util.ByteArrayAnnotatedOutput)1