: new MethodModel(convertName(method.name), convertType(method.return_.type));
methodModel.setAsdoc(toAsDoc(method.doc));
methodModel.getReturnModel().setAsdoc(toAsDoc(method.return_.doc));
setStatic(methodModel, method);
for (Param param : method.params) {
ParamModel paramModel = new ParamModel(convertName(param.name), convertType(param.type));
paramModel.setAsdoc(toAsDoc(param.doc));
setDefaultValue(paramModel, param);
paramModel.setRest(param == method.params.get(method.params.size() - 1) && param.type.endsWith("..."));
methodModel.addParam(paramModel);
}
classModel.addMember(methodModel);
}
}