Search in sources :

Example 1 with Annotation

use of com.android.dex.Annotation in project buck by facebook.

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.android.dex.EncodedValue) ByteArrayAnnotatedOutput(com.android.dx.util.ByteArrayAnnotatedOutput) Annotation(com.android.dex.Annotation)

Example 2 with Annotation

use of com.android.dex.Annotation in project J2ME-Loader by nikita36078.

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.android.dex.EncodedValue) ByteArrayAnnotatedOutput(com.android.dx.util.ByteArrayAnnotatedOutput) Annotation(com.android.dex.Annotation)

Aggregations

Annotation (com.android.dex.Annotation)2 EncodedValue (com.android.dex.EncodedValue)2 ByteArrayAnnotatedOutput (com.android.dx.util.ByteArrayAnnotatedOutput)2