Uses of Class
com.github.javaparser.ast.comments.Comment
Packages that use Comment
Package
Description
-
Uses of Comment in com.github.javaparser.ast
Methods in com.github.javaparser.ast that return types with arguments of type CommentModifier and TypeMethodDescriptionCompilationUnit.getAllComments()
Return a list containing all comments declared in this compilation unit.Node.getAllContainedComments()
This is the list of Comment which are contained in the Node either because they are properly associated to one of its children or because they are floating around inside the NodeNode.getComment()
This is a comment associated with this node.CompilationUnit.getComments()
Deprecated.Node.getOrphanComments()
This is a list of Comment which are inside the node and are not associated with any meaningful AST Node.Methods in com.github.javaparser.ast with parameters of type CommentModifier and TypeMethodDescriptionvoid
Node.addOrphanComment(Comment comment)
boolean
Node.removeOrphanComment(Comment comment)
Node.setComment(Comment comment)
Use this to store additional information to this node. -
Uses of Comment in com.github.javaparser.ast.comments
Subclasses of Comment in com.github.javaparser.ast.commentsModifier and TypeClassDescriptionclass
AST node that represent block comments.class
A Javadoc comment.class
AST node that represent line comments.Methods in com.github.javaparser.ast.comments that return CommentModifier and TypeMethodDescriptionComment.clone()
Comment.setCommentedNode(Node commentedNode)
Sets the commentedNodeComment.setContent(String content)
Sets the text of the comment.Methods in com.github.javaparser.ast.comments that return types with arguments of type CommentMethods in com.github.javaparser.ast.comments with parameters of type CommentModifier and TypeMethodDescriptionvoid
CommentsCollection.addComment(Comment comment)
boolean
Comment.setComment(Comment comment)
Constructor parameters in com.github.javaparser.ast.comments with type arguments of type Comment -
Uses of Comment in com.github.javaparser.ast.nodeTypes
Methods in com.github.javaparser.ast.nodeTypes that return types with arguments of type CommentMethods in com.github.javaparser.ast.nodeTypes with parameters of type Comment -
Uses of Comment in com.github.javaparser.printer
Method parameters in com.github.javaparser.printer with type arguments of type CommentModifier and TypeMethodDescriptionprotected void
DefaultPrettyPrinterVisitor.printComment(Optional<Comment> comment, Void arg)
protected void
PrettyPrintVisitor.printComment(Optional<Comment> comment, Void arg)
Deprecated.
CompilationUnit.getAllComments()
instead