@Override protected Comment processComment(int pos, int endPos, CommentStyle style) { int prevEndPos = Math.max(prevEndPosition, endComment); endComment = endPos; String content = new String(reader.getRawCharacters(pos, endPos)); StartConnection start = determineStartConnection(prevEndPos, pos); EndConnection end = determineEndConnection(endPos); CommentInfo comment = new CommentInfo(prevEndPos, pos, endPos, content, start, end); comments.append(comment); return super.processComment(pos, endPos, style); }
public Node getResultWithJavadoc(java.util.List<CommentInfo> comments) { ListBuffer<CommentInfo> javadocs = ListBuffer.lb(); for (CommentInfo commentInfo : comments) { if (commentInfo.isJavadoc()) javadocs.append(commentInfo);
public Node getResultWithJavadoc(java.util.List<CommentInfo> comments) { ListBuffer<CommentInfo> javadocs = ListBuffer.lb(); for (CommentInfo commentInfo : comments) { if (commentInfo.isJavadoc()) javadocs.append(commentInfo);
public Node getResultWithJavadoc(java.util.List<CommentInfo> comments) { ListBuffer<CommentInfo> javadocs = ListBuffer.lb(); for (CommentInfo commentInfo : comments) { if (commentInfo.isJavadoc()) javadocs.append(commentInfo);
@Override protected void processComment(CommentStyle style) { int prevEndPos = Math.max(prevEndPos(), endComment); int pos = pos(); int endPos = endPos(); endComment = endPos; String content = new String(getRawCharacters(pos, endPos)); StartConnection start = determineStartConnection(prevEndPos, pos); EndConnection end = determineEndConnection(endPos); CommentInfo comment = new CommentInfo(prevEndPos, pos, endPos, content, start, end); comments.append(comment); super.processComment(style); }
@Override protected void processComment(CommentStyle style) { int prevEndPos = Math.max(prevEndPos(), endComment); int pos = pos(); int endPos = endPos(); endComment = endPos; String content = new String(getRawCharacters(pos, endPos)); StartConnection start = determineStartConnection(prevEndPos, pos); EndConnection end = determineEndConnection(endPos); CommentInfo comment = new CommentInfo(prevEndPos, pos, endPos, content, start, end); comments.append(comment); super.processComment(style); }