/** * updates the Javadoc in the given source code. * * @param content the source code * @return the updated source code * @throws Exception in case the generation fails */ protected String updateJavadoc(String content) throws Exception { String result; int i; result = content; for (i = 0; i < m_StartTag.length; i++) { result = updateJavadoc(result, i); } return result; }
/** * updates the Javadoc in the given source code. * * @param content the source code * @return the updated source code * @throws Exception in case the generation fails */ protected String updateJavadoc(String content) throws Exception { String result; int i; result = content; for (i = 0; i < m_StartTag.length; i++) { result = updateJavadoc(result, i); } return result; }
/** * updates the Javadoc in the given source code, using all the found Javadoc * updaters. * * @param content the source code * @return the updated source code * @throws Exception in case the generation fails */ @Override protected String updateJavadoc(String content) throws Exception { String result; int i; result = content; for (i = 0; i < m_Javadocs.size(); i++) { result = m_Javadocs.get(i).updateJavadoc(result); } return result; }
/** * updates the Javadoc in the given source code, using all the found Javadoc * updaters. * * @param content the source code * @return the updated source code * @throws Exception in case the generation fails */ @Override protected String updateJavadoc(String content) throws Exception { String result; int i; result = content; for (i = 0; i < m_Javadocs.size(); i++) { result = m_Javadocs.get(i).updateJavadoc(result); } return result; }
/** * generates either the plain Javadoc (if no filename specified) or the * updated file (if a filename is specified). The start and end tag for the * global info have to be specified in the file in the latter case. * * @return either the plain Javadoc or the modified file * @throws Exception in case the generation fails */ public String generate() throws Exception { if (getDir().length() == 0) { return generateJavadoc(); } else { return updateJavadoc(); } }
/** * generates either the plain Javadoc (if no filename specified) or the * updated file (if a filename is specified). The start and end tag for the * global info have to be specified in the file in the latter case. * * @return either the plain Javadoc or the modified file * @throws Exception in case the generation fails */ public String generate() throws Exception { if (getDir().length() == 0) { return generateJavadoc(); } else { return updateJavadoc(); } }
result = updateJavadoc(contentBuf.toString()); } catch (Exception e) { e.printStackTrace();
result = updateJavadoc(contentBuf.toString()); } catch (Exception e) { e.printStackTrace();