Search in sources :

Example 1 with EncodedAnnotation

use of com.googlecode.d2j.dex.writer.ev.EncodedAnnotation in project dex2jar by pxb1988.

the class AnnotationWriter method visitAnnotation.

@Override
public DexAnnotationVisitor visitAnnotation(String name, String desc) {
    EncodedValue encodedValue;
    EncodedAnnotation encodedAnnotation = new EncodedAnnotation();
    encodedAnnotation.type = cp.uniqType(desc);
    encodedValue = new EncodedValue(EncodedValue.VALUE_ANNOTATION, encodedAnnotation);
    AnnotationElement ae = newAnnotationElement(name);
    ae.value = encodedValue;
    return new AnnotationWriter(encodedAnnotation.elements, cp);
}
Also used : EncodedValue(com.googlecode.d2j.dex.writer.ev.EncodedValue) AnnotationElement(com.googlecode.d2j.dex.writer.ev.EncodedAnnotation.AnnotationElement) EncodedAnnotation(com.googlecode.d2j.dex.writer.ev.EncodedAnnotation)

Aggregations

EncodedAnnotation (com.googlecode.d2j.dex.writer.ev.EncodedAnnotation)1 AnnotationElement (com.googlecode.d2j.dex.writer.ev.EncodedAnnotation.AnnotationElement)1 EncodedValue (com.googlecode.d2j.dex.writer.ev.EncodedValue)1