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()); } }
@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)); } }
public boolean addAnnotationIfNew(OJAnnotationValue value) { if (f_annotations.containsKey(value.getType())) { return false; } else { putAnnotation(value); return true; } }
public OJAnnotationValue putAnnotation(OJAnnotationValue value) { return f_annotations.put(value.getType(), value); }