addExpressions (member.getDoc ().getTags (), "return", pw, "attrs", sourceFile);
pw.println (" bundle.add (attrs);");
pw.println (" attrs = null;");
for (Iterator parameters = member.getParameters ().iterator (); parameters.hasNext ();) {
XParameter parameter = (XParameter) parameters.next ();
pw.println (" attrs = new java.util.HashSet ();");
addExpressions (member.getDoc ().getTags (), parameter.getName (), pw, "attrs", sourceFile);
pw.println (" bundle.add (attrs);");
pw.println (" attrs = null;");
}
pw.println (" methodAttributes.put (\"" + key + "\", bundle);");
pw.println (" bundle = null;");
pw.println ();
}
}
pw.println (" }");
// ---- Constructor Attributes
pw.println (" private void initConstructorAttributes () {");
pw.println (" java.util.Set attrs = null;");
pw.println (" java.util.List bundle = null;");
for (Iterator iter = xClass.getConstructors ().iterator (); iter.hasNext ();) {
XConstructor member = (XConstructor) iter.next ();
if (member.getDoc ().getTags ().size () > 0) {
StringBuffer sb = new StringBuffer ();
sb.append ("(");
sb.append (getParameterTypes (member.getParameters ()));
sb.append (")");
String key = sb.toString ();
pw.println (" bundle = new java.util.ArrayList ();");
pw.println (" attrs = new java.util.HashSet ();");
addExpressions (member.getDoc ().getTags (), null, pw, "attrs", sourceFile);
pw.println (" bundle.add (attrs);");
pw.println (" attrs = null;");
for (Iterator parameters = member.getParameters ().iterator (); parameters.hasNext ();) {
XParameter parameter = (XParameter) parameters.next ();
pw.println (" attrs = new java.util.HashSet ();");
addExpressions (member.getDoc ().getTags (), parameter.getName (), pw, "attrs", sourceFile);
pw.println (" bundle.add (attrs);");
pw.println (" attrs = null;");
}
pw.println (" constructorAttributes.put (\"" + key + "\", bundle);");