private void appendTerminator() { Validate.isTrue(indentLevel == 1, "Indent level must be 1 (not %d) to conclude", indentLevel); indentRemove(); // Ensure we present the content flag, as it will be set true during the // formal line append final boolean contentBefore = content; appendFormalLine("}"); content = contentBefore; }
appendFormalLine("/*"); appendFormalLine(" * This Aspect takes the lower precedence"); appendFormalLine(" */"); appendIndent(); append("declare precedence: *, ");
private void writeConstructorJavaDoc(final ConstructorMetadata constructor) { CommentStructure commentStructure = constructor.getCommentStructure(); if (commentStructure != null && !commentStructure.isEmpty()) { JavadocComment lastJavaDoc = getLastJavaDoc(commentStructure); // Add JavaDoc missing components if (lastJavaDoc == null) { lastJavaDoc = new JavadocComment(AUTOGENERATED_CONSTRUCTOR_JAVADOC, constructor); commentStructure.addComment(lastJavaDoc, CommentLocation.END); } else { if (!constructor.getParameterNames().isEmpty() && lastJavaDoc.getParamsInfo() == null) { List<String> paramsInfo = new ArrayList<String>(); for (JavaSymbolName name : constructor.getParameterNames()) { paramsInfo.add(name.getSymbolName()); } lastJavaDoc.setParamsInfo(paramsInfo); } } } else { // ROO-3834: Append default Javadoc if not exists a comment structure, // including constructor params commentStructure = JavadocComment.create(constructor, AUTOGENERATED_CONSTRUCTOR_JAVADOC); } // Write JavadocComment's to ITD String[] commentLines = commentStructure.asPlainText().split(IOUtils.LINE_SEPARATOR); for (String commentLine : commentLines) { appendFormalLine(commentLine); } }
appendFormalLine(commentLine);
indentRemove(); appendFormalLine("}");
appendFormalLine("}"); this.newLine(false);
indentRemove(); appendFormalLine("}");
private void appendTerminator() { Validate.isTrue(indentLevel == 1, "Indent level must be 1 (not %d) to conclude", indentLevel); indentRemove(); // Ensure we present the content flag, as it will be set true during the // formal line append final boolean contentBefore = content; appendFormalLine("}"); content = contentBefore; }
appendFormalLine(commentLine);
appendFormalLine("/*"); appendFormalLine(" * This Aspect takes the lower precedence"); appendFormalLine(" */"); appendIndent(); append("declare precedence: *, ");
private void writeConstructorJavaDoc(final ConstructorMetadata constructor) { CommentStructure commentStructure = constructor.getCommentStructure(); if (commentStructure != null && !commentStructure.isEmpty()) { JavadocComment lastJavaDoc = getLastJavaDoc(commentStructure); // Add JavaDoc missing components if (lastJavaDoc == null) { lastJavaDoc = new JavadocComment(AUTOGENERATED_CONSTRUCTOR_JAVADOC, constructor); commentStructure.addComment(lastJavaDoc, CommentLocation.END); } else { if (!constructor.getParameterNames().isEmpty() && lastJavaDoc.getParamsInfo() == null) { List<String> paramsInfo = new ArrayList<String>(); for (JavaSymbolName name : constructor.getParameterNames()) { paramsInfo.add(name.getSymbolName()); } lastJavaDoc.setParamsInfo(paramsInfo); } } } else { // ROO-3834: Append default Javadoc if not exists a comment structure, // including constructor params commentStructure = JavadocComment.create(constructor, AUTOGENERATED_CONSTRUCTOR_JAVADOC); } // Write JavadocComment's to ITD String[] commentLines = commentStructure.asPlainText().split(IOUtils.LINE_SEPARATOR); for (String commentLine : commentLines) { appendFormalLine(commentLine); } }
indentRemove(); appendFormalLine("}");
appendFormalLine("}"); this.newLine(false);
indentRemove(); appendFormalLine("}");