for (int j = 0; j < methods.length; j++) {
MethodDoc method = methods[j];
Element function = document.createElement("function");
cls.appendChild(function);
function.setAttribute("name", method.name());
function.setAttribute("description", method.commentText());
function.setAttribute("type", method.returnType().typeName());
Parameter[] params = method.parameters();
for (int k = 0; k < params.length; k++) {
Parameter param = params[k];