public void visitArrayElementValue(Clazz clazz, Annotation annotation, ArrayElementValue arrayElementValue) { // Create a copy of the element value. ArrayElementValue newArrayElementValue = new ArrayElementValue(arrayElementValue.u2elementNameIndex == 0 ? 0 : constantAdder.addConstant(clazz, arrayElementValue.u2elementNameIndex), 0, arrayElementValue.u2elementValuesCount > 0 ? new ElementValue[arrayElementValue.u2elementValuesCount] : EMPTY_ELEMENT_VALUES); newArrayElementValue.referencedClass = arrayElementValue.referencedClass; newArrayElementValue.referencedMethod = arrayElementValue.referencedMethod; arrayElementValue.elementValuesAccept(clazz, annotation, new ElementValueAdder(targetClass, newArrayElementValue, false)); // Add it to the target. addElementValue(newArrayElementValue); }
public void visitConstantElementValue(Clazz clazz, Annotation annotation, ConstantElementValue constantElementValue) { // Create a copy of the element value. ConstantElementValue newConstantElementValue = new ConstantElementValue(constantElementValue.u1tag, constantElementValue.u2elementNameIndex == 0 ? 0 : constantAdder.addConstant(clazz, constantElementValue.u2elementNameIndex), constantAdder.addConstant(clazz, constantElementValue.u2constantValueIndex)); newConstantElementValue.referencedClass = constantElementValue.referencedClass; newConstantElementValue.referencedMethod = constantElementValue.referencedMethod; // Add it to the target. addElementValue(newConstantElementValue); }
public void visitAnnotationDefaultAttribute(Clazz clazz, Method method, AnnotationDefaultAttribute annotationDefaultAttribute) { // Create a new annotation default attribute. AnnotationDefaultAttribute newAnnotationDefaultAttribute = new AnnotationDefaultAttribute(constantAdder.addConstant(clazz, annotationDefaultAttribute.u2attributeNameIndex), null); // Add the annotations. annotationDefaultAttribute.defaultValueAccept(clazz, new ElementValueAdder(targetClass, newAnnotationDefaultAttribute, false)); // Add it to the target. attributesEditor.addAttribute(newAnnotationDefaultAttribute); } }
public void visitConstantElementValue(Clazz clazz, Annotation annotation, ConstantElementValue constantElementValue) { // Create a copy of the element value. ConstantElementValue newConstantElementValue = new ConstantElementValue(constantElementValue.u1tag, constantElementValue.u2elementNameIndex == 0 ? 0 : constantAdder.addConstant(clazz, constantElementValue.u2elementNameIndex), constantAdder.addConstant(clazz, constantElementValue.u2constantValueIndex)); newConstantElementValue.referencedClass = constantElementValue.referencedClass; newConstantElementValue.referencedMethod = constantElementValue.referencedMethod; // Add it to the target. addElementValue(newConstantElementValue); }
public void visitAnnotationDefaultAttribute(Clazz clazz, Method method, AnnotationDefaultAttribute annotationDefaultAttribute) { // Create a new annotation default attribute. AnnotationDefaultAttribute newAnnotationDefaultAttribute = new AnnotationDefaultAttribute(constantAdder.addConstant(clazz, annotationDefaultAttribute.u2attributeNameIndex), null); // Add the annotations. annotationDefaultAttribute.defaultValueAccept(clazz, new ElementValueAdder(targetClass, newAnnotationDefaultAttribute, false)); // Add it to the target. attributesEditor.addAttribute(newAnnotationDefaultAttribute); } }
public void visitConstantElementValue(Clazz clazz, Annotation annotation, ConstantElementValue constantElementValue) { // Create a copy of the element value. ConstantElementValue newConstantElementValue = new ConstantElementValue(constantElementValue.u1tag, constantElementValue.u2elementNameIndex == 0 ? 0 : constantAdder.addConstant(clazz, constantElementValue.u2elementNameIndex), constantAdder.addConstant(clazz, constantElementValue.u2constantValueIndex)); newConstantElementValue.referencedClass = constantElementValue.referencedClass; newConstantElementValue.referencedMethod = constantElementValue.referencedMethod; // Add it to the target. addElementValue(newConstantElementValue); }
public void visitArrayElementValue(Clazz clazz, Annotation annotation, ArrayElementValue arrayElementValue) { // Create a copy of the element value. ArrayElementValue newArrayElementValue = new ArrayElementValue(arrayElementValue.u2elementNameIndex == 0 ? 0 : constantAdder.addConstant(clazz, arrayElementValue.u2elementNameIndex), 0, arrayElementValue.u2elementValuesCount > 0 ? new ElementValue[arrayElementValue.u2elementValuesCount] : EMPTY_ELEMENT_VALUES); newArrayElementValue.referencedClass = arrayElementValue.referencedClass; newArrayElementValue.referencedMethod = arrayElementValue.referencedMethod; arrayElementValue.elementValuesAccept(clazz, annotation, new ElementValueAdder(targetClass, newArrayElementValue, false)); // Add it to the target. addElementValue(newArrayElementValue); }
public void visitAnnotationDefaultAttribute(Clazz clazz, Method method, AnnotationDefaultAttribute annotationDefaultAttribute) { // Create a new annotation default attribute. AnnotationDefaultAttribute newAnnotationDefaultAttribute = new AnnotationDefaultAttribute(constantAdder.addConstant(clazz, annotationDefaultAttribute.u2attributeNameIndex), null); // Add the annotations. annotationDefaultAttribute.defaultValueAccept(clazz, new ElementValueAdder(targetClass, newAnnotationDefaultAttribute, false)); // Add it to the target. attributesEditor.addAttribute(newAnnotationDefaultAttribute); } }
public void visitConstantElementValue(Clazz clazz, Annotation annotation, ConstantElementValue constantElementValue) { // Create a copy of the element value. ConstantElementValue newConstantElementValue = new ConstantElementValue(constantElementValue.u1tag, constantElementValue.u2elementNameIndex == 0 ? 0 : constantAdder.addConstant(clazz, constantElementValue.u2elementNameIndex), constantAdder.addConstant(clazz, constantElementValue.u2constantValueIndex)); newConstantElementValue.referencedClass = constantElementValue.referencedClass; newConstantElementValue.referencedMethod = constantElementValue.referencedMethod; // Add it to the target. addElementValue(newConstantElementValue); }
public void visitArrayElementValue(Clazz clazz, Annotation annotation, ArrayElementValue arrayElementValue) { // Create a copy of the element value. ArrayElementValue newArrayElementValue = new ArrayElementValue(arrayElementValue.u2elementNameIndex == 0 ? 0 : constantAdder.addConstant(clazz, arrayElementValue.u2elementNameIndex), 0, arrayElementValue.u2elementValuesCount > 0 ? new ElementValue[arrayElementValue.u2elementValuesCount] : EMPTY_ELEMENT_VALUES); newArrayElementValue.referencedClass = arrayElementValue.referencedClass; newArrayElementValue.referencedMethod = arrayElementValue.referencedMethod; arrayElementValue.elementValuesAccept(clazz, annotation, new ElementValueAdder(targetClass, newArrayElementValue, false)); // Add it to the target. addElementValue(newArrayElementValue); }
public void visitAnnotationDefaultAttribute(Clazz clazz, Method method, AnnotationDefaultAttribute annotationDefaultAttribute) { // Create a new annotation default attribute. AnnotationDefaultAttribute newAnnotationDefaultAttribute = new AnnotationDefaultAttribute(constantAdder.addConstant(clazz, annotationDefaultAttribute.u2attributeNameIndex), null); // Add the annotations. annotationDefaultAttribute.defaultValueAccept(clazz, new ElementValueAdder(targetClass, newAnnotationDefaultAttribute, false)); // Add it to the target. attributesEditor.addAttribute(newAnnotationDefaultAttribute); } }
public void visitClassElementValue(Clazz clazz, Annotation annotation, ClassElementValue classElementValue) { // Create a copy of the element value. ClassElementValue newClassElementValue = new ClassElementValue(classElementValue.u2elementNameIndex == 0 ? 0 : constantAdder.addConstant(clazz, classElementValue.u2elementNameIndex), constantAdder.addConstant(clazz, classElementValue.u2classInfoIndex)); newClassElementValue.referencedClass = classElementValue.referencedClass; newClassElementValue.referencedMethod = classElementValue.referencedMethod; // TODO: Clone array. newClassElementValue.referencedClasses = classElementValue.referencedClasses; // Add it to the target. addElementValue(newClassElementValue); }
public void visitArrayElementValue(Clazz clazz, Annotation annotation, ArrayElementValue arrayElementValue) { // Create a copy of the element value. ArrayElementValue newArrayElementValue = new ArrayElementValue(arrayElementValue.u2elementNameIndex == 0 ? 0 : constantAdder.addConstant(clazz, arrayElementValue.u2elementNameIndex), 0, arrayElementValue.u2elementValuesCount > 0 ? new ElementValue[arrayElementValue.u2elementValuesCount] : EMPTY_ELEMENT_VALUES); newArrayElementValue.referencedClass = arrayElementValue.referencedClass; newArrayElementValue.referencedMethod = arrayElementValue.referencedMethod; arrayElementValue.elementValuesAccept(clazz, annotation, new ElementValueAdder(targetClass, newArrayElementValue, false)); // Add it to the target. addElementValue(newArrayElementValue); }
public void visitAnnotation(Clazz clazz, Method method, int parameterIndex, 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)); // Add the completed annotation. parameterAnnotationsAttributeEditor.addAnnotation(parameterIndex, newAnnotation); } }
public void visitClassElementValue(Clazz clazz, Annotation annotation, ClassElementValue classElementValue) { // Create a copy of the element value. ClassElementValue newClassElementValue = new ClassElementValue(classElementValue.u2elementNameIndex == 0 ? 0 : constantAdder.addConstant(clazz, classElementValue.u2elementNameIndex), constantAdder.addConstant(clazz, classElementValue.u2classInfoIndex)); newClassElementValue.referencedClass = classElementValue.referencedClass; newClassElementValue.referencedMethod = classElementValue.referencedMethod; // TODO: Clone array. newClassElementValue.referencedClasses = classElementValue.referencedClasses; // Add it to the target. addElementValue(newClassElementValue); }
public void visitAnnotation(Clazz clazz, Method method, int parameterIndex, 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)); // Add the completed annotation. parameterAnnotationsAttributeEditor.addAnnotation(parameterIndex, newAnnotation); } }
public void visitClassElementValue(Clazz clazz, Annotation annotation, ClassElementValue classElementValue) { // Create a copy of the element value. ClassElementValue newClassElementValue = new ClassElementValue(classElementValue.u2elementNameIndex == 0 ? 0 : constantAdder.addConstant(clazz, classElementValue.u2elementNameIndex), constantAdder.addConstant(clazz, classElementValue.u2classInfoIndex)); newClassElementValue.referencedClass = classElementValue.referencedClass; newClassElementValue.referencedMethod = classElementValue.referencedMethod; // TODO: Clone array. newClassElementValue.referencedClasses = classElementValue.referencedClasses; // Add it to the target. addElementValue(newClassElementValue); }
public void visitAnnotation(Clazz clazz, Method method, int parameterIndex, 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)); // Add the completed annotation. parameterAnnotationsAttributeEditor.addAnnotation(parameterIndex, newAnnotation); } }
public void visitClassElementValue(Clazz clazz, Annotation annotation, ClassElementValue classElementValue) { // Create a copy of the element value. ClassElementValue newClassElementValue = new ClassElementValue(classElementValue.u2elementNameIndex == 0 ? 0 : constantAdder.addConstant(clazz, classElementValue.u2elementNameIndex), constantAdder.addConstant(clazz, classElementValue.u2classInfoIndex)); newClassElementValue.referencedClass = classElementValue.referencedClass; newClassElementValue.referencedMethod = classElementValue.referencedMethod; // TODO: Clone array. newClassElementValue.referencedClasses = classElementValue.referencedClasses; // Add it to the target. addElementValue(newClassElementValue); }
public void visitAnnotation(Clazz clazz, Method method, int parameterIndex, 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)); // Add the completed annotation. parameterAnnotationsAttributeEditor.addAnnotation(parameterIndex, newAnnotation); } }