/** * Add the specified comment string to the list of preceding comments. */ public void addPrecedingComment(String s) { addPrecedingComment(Comment.create(s)); }
/** * Add the specified comment string to the list of trailing comments. */ public void addTrailingComment(String s) { addTrailingComment(Comment.create(s)); }
null); if (addComment) { Comment comment = Comment.create(Comment.Style.JAVADOC,// -2, -2, -2, "Do not modify "+RestConstants.GET_REST_RESOURCE_CLASSES2+"() method.\n" + "It is automatically populated with\n"
private void attachComment(CommentSet.RelativePosition positioning, CommentSet set, Token<JavaTokenId> comment) { Comment c = Comment.create(getStyle(comment.id()), comment.offset(null), getEndPos(comment), NOPOS, getText(comment)); set.addComment(positioning, c); }
Comment comment = Comment.create(Comment.Style.JAVADOC, -2, -2, -2, mInfo.getCommentText()); make.addComment(mtree, comment, true);