Пример #1
0
 public void addParameterAnnotation(int parameter, String name, AnnotationValue value) {
   ClassDescriptor annotationClass = DescriptorFactory.createClassDescriptorFromSignature(name);
   Map<ClassDescriptor, AnnotationValue> map = methodParameterAnnotations.get(parameter);
   if (map == null) {
     map = new HashMap<ClassDescriptor, AnnotationValue>();
     methodParameterAnnotations.put(parameter, map);
   }
   map.put(annotationClass, value);
 }
Пример #2
0
 public void addAnnotation(String name, AnnotationValue value) {
   ClassDescriptor annotationClass = DescriptorFactory.createClassDescriptorFromSignature(name);
   methodAnnotations.put(annotationClass, value);
 }