/** * Adds a parameter and its description to parametersection of the doc * * @param parametername * @param parameterdescription */ private void addParameter(String parametername, String parameterdescription) { PARAMETER_NAME_TAG.setContent(parametername); memberParameter.insertTagContent(PARAMETER_NAME_TAG); PARAMETER_DESCRIPTION_TAG.setContent(parameterdescription); memberParameter.insertTagContent(PARAMETER_DESCRIPTION_TAG); PARAMETER_TAG.addContent(memberParameter.getTemplateContent()); }
/** * Adds all parameters of an executable doc member to the documentation * * @param doc */ void addParameters(Doc doc) { if (doc.isConstructor() || doc.isMethod()) { ExecutableMemberDoc memberDoc = (ExecutableMemberDoc) doc; ParamTag[] tags = memberDoc.paramTags(); for (int i = 0; i < tags.length; ++i) { addParameter(tags[i].parameterName(), tags[i].parameterComment()); } if (tags.length > 0) { memberParameters.insertTagContent(PARAMETER_TAG); PARAMETERS_TAG.setContent(memberParameters.getTemplateContent()); } } }