- } else if (incomment && line.contains("Routine Description:")) {\r
- description = true;\r
- arguments = false;\r
- returns = false;\r
- } else if (incomment && line.contains("Arguments:")) {\r
- description = false;\r
- arguments = true;\r
- returns = false;\r
- } else if (incomment && line.contains("Returns:")) {\r
- description = false;\r
- arguments = false;\r
- returns = true;\r
- } else if (incomment && description) {\r
- templine.append(" " + line.trim() + "\n");\r
- } else if (incomment && arguments) {\r
- mtrcommentequation = ptncommentequation.matcher(line);\r
- if (mtrcommentequation.find()) {\r
- inequation = true;\r
- templine.append(" @param " + mtrcommentequation.group(1) + " " + mtrcommentequation.group(2) + "\n");\r
- } else if (inequation && line.trim().length() == 0) {\r
- inequation = false;\r
- templine.append(line + "\n");\r
- } else if (inequation && line.trim().length() != 0) {\r
- templine.append("#%#%" + line + "\n");\r
- } else {\r
- templine.append(" " + line.trim() + "\n");\r
- }\r
- } else if (incomment && returns) {\r
- mtrcommentequation = ptncommentequation.matcher(line);\r
- if (mtrcommentequation.find()) {\r
- inequation = true;\r
- templine.append(" @retval " + mtrcommentequation.group(1) + " " + mtrcommentequation.group(2) + "\n");\r
- } else if (inequation && line.trim().length() == 0) {\r
- inequation = false;\r
- templine.append(line + "\n");\r
- } else if (inequation && line.trim().length() != 0) {\r
- templine.append("#%#%" + line + "\n");\r
- } else {\r
- templine.append(" " + line.trim() + "\n");\r
+ } else if (incomment) {\r
+ if (line.contains("Routine Description:")) {\r
+ description = true;\r
+ arguments = false;\r
+ returns = false;\r
+ } else if (line.contains("Arguments:")) {\r
+ description = false;\r
+ arguments = true;\r
+ returns = false;\r
+ } else if (line.contains("Returns:")) {\r
+ description = false;\r
+ arguments = false;\r
+ returns = true;\r
+ } else if (description) {\r
+ if (line.trim().length() != 0) {\r
+ templine.append(" " + line.trim() + "\n");\r
+ }\r
+ } else if (arguments) {\r
+ mtrcommentequation = ptncommentequation.matcher(line);\r
+ if (mtrcommentequation.find()) {\r
+ inequation = true;\r
+ templine.append(" @param " + mtrcommentequation.group(1) + " " + mtrcommentequation.group(2) + "\n");\r
+ } else if (inequation && line.trim().length() == 0) {\r
+ inequation = false;\r
+ templine.append(line + "\n");\r
+ } else if (inequation && line.trim().length() != 0) {\r
+ templine.append("#%#%" + line + "\n");\r
+ } else {\r
+ templine.append(" " + line.trim() + "\n");\r
+ }\r
+ } else if (returns) {\r
+ mtrcommentequation = ptncommentequation.matcher(line);\r
+ if (mtrcommentequation.find()) {\r
+ inequation = true;\r
+ templine.append(" @retval " + mtrcommentequation.group(1) + " " + mtrcommentequation.group(2) + "\n");\r
+ } else if (inequation && line.trim().length() == 0) {\r
+ inequation = false;\r
+ templine.append(line + "\n");\r
+ } else if (inequation && line.trim().length() != 0) {\r
+ templine.append("#%#%" + line + "\n");\r
+ } else {\r
+ templine.append(" " + line.trim() + "\n");\r
+ }\r