Beispiel #1
0
 protected void copyDeepInfoInto(OJAnnotationValue result) {
   super.copyDeepInfoInto(result);
   result.type = type.getDeepCopy();
   result.attributes = new TreeMap<String, OJAnnotationAttributeValue>();
   for (OJAnnotationAttributeValue v : this.attributes.values()) {
     result.attributes.put(v.getName(), v.getDeepCopy());
   }
 }
Beispiel #2
0
 @Override
 public void renameAll(Set<OJPathName> match, String suffix) {
   for (OJAnnotationValue a : getAnnotations()) {
     a.renameAll(match, suffix);
   }
   for (OJField ojField : attributeValues) {
     ojField.setInitExp(replaceAll(ojField.getInitExp(), match, suffix));
   }
 }
Beispiel #3
0
 public boolean addAnnotationIfNew(OJAnnotationValue value) {
   if (f_annotations.containsKey(value.getType())) {
     return false;
   } else {
     putAnnotation(value);
     return true;
   }
 }
Beispiel #4
0
 public OJAnnotationValue putAnnotation(OJAnnotationValue value) {
   return f_annotations.put(value.getType(), value);
 }