Iterator<Property> it = cons.getProperties();
while(it.hasNext()){
Property pr = it.next();
ExprForASTElement expr = pr.getExprForValue();
conStr = conStr.append(identMethodBody(consListArgName)).
append(".push_back(").
append(callToString(expr)).
append(");\n");
}
conStr = getMethodFooter(conStr);
conStr.append("\n");
conStr = getMethodDeclHead(conStr, "string", "toString", consTargetType + " " + consThisName);
identMethodBody(conStr).append("const string delim = ").append(writerName).append("->getDelim();\n");
identMethodBody(conStr).append("ostringstream rv;\n");
it = cons.getProperties();
Property pr = it.next();
assert pr.getExprForValue() != null;
conStr = identMethodBody(conStr).append("rv << ").append(callToString(pr.getExprForValue()));
while(it.hasNext()){
assert pr.getExprForValue() != null;
pr = it.next();
ExprForASTElement expr = pr.getExprForValue();
conStr = identMethodBody(conStr.append("\n")).append(" ");
conStr = conStr.append(" << delim <<").append(callToString(expr));
}
conStr.append(";\n");