protected void toStringParamsAndThrows(StringBuffer sb) {
sb.append("(");
boolean needComma = false;
for (int i = 0, c = params.size(); i < c; ++i) {
Parameter param = (Parameter) params.get(i);
if (needComma) {
sb.append(", ");
} else {
needComma = true;
}
if ((isVarArgs() && i == c - 1) && (param.getType() != null)) {
ArrayType arrayType = param.getType().isArray();
assert (arrayType != null);
sb.append(arrayType.getComponentType().getParameterizedQualifiedSourceName());
sb.append("...");
} else {
sb.append(param.getTypeName());
}
sb.append(" ");
sb.append(param.getName());
}
sb.append(")");
if (!thrownTypes.isEmpty()) {
sb.append(" throws ");