private void writeMethodJavaDoc(final MethodMetadata method) { CommentStructure commentStructure = method.getCommentStructure(); if (commentStructure != null && !commentStructure.isEmpty()) { JavadocComment lastJavaDoc = getLastJavaDoc(commentStructure);
CommentStructure commentStructure = method.getCommentStructure(); if (commentStructure != null) {
/** * This method generates new method instance using an existing * methodMetadata * * @param declaredByMetadataId * @param method * * @return */ private MethodMetadata getNewMethod(String declaredByMetadataId, MethodMetadata method) { // Create bodyBuilder InvocableMemberBodyBuilder bodyBuilder = new InvocableMemberBodyBuilder(); bodyBuilder.appendFormalLine(method.getBody()); // Use the MethodMetadataBuilder for easy creation of MethodMetadata // based on existing method MethodMetadataBuilder methodBuilder = new MethodMetadataBuilder(declaredByMetadataId, method.getModifier(), method.getMethodName(), method.getReturnType(), method.getParameterTypes(), method.getParameterNames(), bodyBuilder); methodBuilder.setAnnotations(method.getAnnotations()); // ROO-3834: Including default comment structure during push-in methodBuilder.setCommentStructure(method.getCommentStructure()); return methodBuilder.build(); }
private void writeMethodJavaDoc(final MethodMetadata method) { CommentStructure commentStructure = method.getCommentStructure(); if (commentStructure != null && !commentStructure.isEmpty()) { JavadocComment lastJavaDoc = getLastJavaDoc(commentStructure);