for (Comment comment : (List<Comment>) compilationUnit.getCommentList()) { comment.accept(new CommentVisitor(compilationUnit, classSource.split("\n"))); }
private void prepareComments() { CommentsPreparator commentsPreparator = new CommentsPreparator(this.tokenManager, this.workingOptions, this.sourceLevel); List<Comment> comments = ((CompilationUnit) this.astRoot.getRoot()).getCommentList(); for (Comment comment : comments) { comment.accept(commentsPreparator); } commentsPreparator.finishUp(); }
private void prepareComments() { CommentsPreparator commentsPreparator = new CommentsPreparator(this.tokenManager, this.workingOptions, this.sourceLevel); List<Comment> comments = ((CompilationUnit) this.astRoot.getRoot()).getCommentList(); for (Comment comment : comments) { comment.accept(commentsPreparator); } commentsPreparator.finishUp(); }
@Override public void preVisit(final ASTNode node) { if ((((node instanceof Comment) || (node instanceof TagElement)) || (node instanceof TextElement))) { return; } ASTNode _root = node.getRoot(); if ((_root instanceof CompilationUnit)) { ASTNode _root_1 = node.getRoot(); final CompilationUnit cu = ((CompilationUnit) _root_1); final Function1<Comment, Boolean> _function = (Comment it) -> { int _startPosition = it.getStartPosition(); int _startPosition_1 = node.getStartPosition(); return Boolean.valueOf((_startPosition < _startPosition_1)); }; final Consumer<Comment> _function_1 = (Comment it) -> { it.accept(this); this.assignedComments.add(it); }; IterableExtensions.<Comment>filter(this.unAssignedComments(cu), _function).forEach(_function_1); } }
private void prepareComments() { CommentsPreparator commentsPreparator = new CommentsPreparator(this.tokenManager, this.workingOptions, this.sourceLevel); List<Comment> comments = ((CompilationUnit) this.astRoot.getRoot()).getCommentList(); for (Comment comment : comments) { comment.accept(commentsPreparator); } commentsPreparator.finishUp(); }
private void prepareComments() { CommentsPreparator commentsPreparator = new CommentsPreparator(this.tokenManager, this.workingOptions, this.sourceLevel); List<Comment> comments = ((CompilationUnit) this.astRoot.getRoot()).getCommentList(); for (Comment comment : comments) { comment.accept(commentsPreparator); } commentsPreparator.finishUp(); }
this.appendLineWrapToBuffer(); it.accept(this); this.assignedComments.add(it); };
final CompilationUnit cu = ((CompilationUnit) _root_1); final Consumer<Comment> _function = (Comment it_1) -> { it_1.accept(this); this.assignedComments.add(it_1); };