public void visitAnnotation(Clazz clazz, Annotation annotation) { Annotation newAnnotation = new Annotation(constantAdder.addConstant(clazz, annotation.u2typeIndex), 0, annotation.u2elementValuesCount > 0 ? new ElementValue[annotation.u2elementValuesCount] : EMPTY_ELEMENT_VALUES); // TODO: Clone array. newAnnotation.referencedClasses = annotation.referencedClasses; // Add the element values. annotation.elementValuesAccept(clazz, new ElementValueAdder(targetClass, newAnnotation, false)); // What's the target? if (targetAnnotationElementValue != null) { // Simply set the completed annotation. targetAnnotationElementValue.annotationValue = newAnnotation; } else { // Add the completed annotation. annotationsAttributeEditor.addAnnotation(newAnnotation); } }
public void visitAnnotation(Clazz clazz, Annotation annotation) { Annotation newAnnotation = new Annotation(constantAdder.addConstant(clazz, annotation.u2typeIndex), 0, annotation.u2elementValuesCount > 0 ? new ElementValue[annotation.u2elementValuesCount] : EMPTY_ELEMENT_VALUES); // TODO: Clone array. newAnnotation.referencedClasses = annotation.referencedClasses; // Add the element values. annotation.elementValuesAccept(clazz, new ElementValueAdder(targetClass, newAnnotation, false)); // What's the target? if (targetAnnotationElementValue != null) { // Simply set the completed annotation. targetAnnotationElementValue.annotationValue = newAnnotation; } else { // Add the completed annotation. annotationsAttributeEditor.addAnnotation(newAnnotation); } }
public void visitAnnotation(Clazz clazz, Annotation annotation) { Annotation newAnnotation = new Annotation(constantAdder.addConstant(clazz, annotation.u2typeIndex), 0, annotation.u2elementValuesCount > 0 ? new ElementValue[annotation.u2elementValuesCount] : EMPTY_ELEMENT_VALUES); // TODO: Clone array. newAnnotation.referencedClasses = annotation.referencedClasses; // Add the element values. annotation.elementValuesAccept(clazz, new ElementValueAdder(targetClass, newAnnotation, false)); // What's the target? if (targetAnnotationElementValue != null) { // Simply set the completed annotation. targetAnnotationElementValue.annotationValue = newAnnotation; } else { // Add the completed annotation. annotationsAttributeEditor.addAnnotation(newAnnotation); } }
public void visitAnnotation(Clazz clazz, Annotation annotation) { Annotation newAnnotation = new Annotation(constantAdder.addConstant(clazz, annotation.u2typeIndex), 0, annotation.u2elementValuesCount > 0 ? new ElementValue[annotation.u2elementValuesCount] : EMPTY_ELEMENT_VALUES); // TODO: Clone array. newAnnotation.referencedClasses = annotation.referencedClasses; // Add the element values. annotation.elementValuesAccept(clazz, new ElementValueAdder(targetClass, newAnnotation, false)); // What's the target? if (targetAnnotationElementValue != null) { // Simply set the completed annotation. targetAnnotationElementValue.annotationValue = newAnnotation; } else { // Add the completed annotation. annotationsAttributeEditor.addAnnotation(newAnnotation); } }
annotationsAttributeEditor.addAnnotation(newTypeAnnotation);
annotationsAttributeEditor.addAnnotation(newTypeAnnotation);
annotationsAttributeEditor.addAnnotation(newTypeAnnotation);