}
public String stringify() {
- return "xxxxxxxxxxx";
+ StringBuffer sb = new StringBuffer();
+ sb.append("@").append(UnresolvedType.forSignature(type).getClassName());
+ if (hasNameValuePairs()) {
+ sb.append("(");
+ for (Iterator iter = nvPairs.iterator(); iter.hasNext();) {
+ AnnotationNameValuePair element = (AnnotationNameValuePair) iter.next();
+ sb.append(element.stringify());
+ }
+ sb.append(")");
+ }
+ return sb.toString();
}
public String getStringValueOf(Object name) {
sb.append(name+"="+val.toString());
return sb.toString();
}
+
+ public String stringify() {
+ StringBuffer sb = new StringBuffer();
+ if (!name.equals("value")) {
+ sb.append(name+"=");
+ }
+ sb.append(val.stringify());
+ return sb.toString();
+ }
}