Uses of Class
com.github.javaparser.ast.comments.Comment
-
Packages that use Comment Package Description com.github.javaparser.ast com.github.javaparser.ast.comments com.github.javaparser.ast.nodeTypes com.github.javaparser.printer -
-
Uses of Comment in com.github.javaparser.ast
Methods in com.github.javaparser.ast that return types with arguments of type Comment Modifier and Type Method Description List<Comment>
CompilationUnit. getAllComments()
Return a list containing all comments declared in this compilation unit.List<Comment>
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 NodeOptional<Comment>
Node. getComment()
This is a comment associated with this node.List<Comment>
CompilationUnit. getComments()
Deprecated.getComments was a too generic name and it could be confused with getComment or getAllContainedComments UseCompilationUnit.getAllComments()
insteadList<Comment>
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 Comment Modifier and Type Method Description void
Node. addOrphanComment(Comment comment)
boolean
Node. removeOrphanComment(Comment comment)
Node
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.comments Modifier and Type Class Description class
BlockComment
AST node that represent block comments.class
JavadocComment
A Javadoc comment.class
LineComment
AST node that represent line comments.Methods in com.github.javaparser.ast.comments that return Comment Modifier and Type Method Description Comment
Comment. clone()
Comment
Comment. setCommentedNode(Node commentedNode)
Sets the commentedNodeComment
Comment. setContent(String content)
Sets the text of the comment.Methods in com.github.javaparser.ast.comments that return types with arguments of type Comment Modifier and Type Method Description TreeSet<Comment>
CommentsCollection. getComments()
Methods in com.github.javaparser.ast.comments with parameters of type Comment Modifier and Type Method Description void
CommentsCollection. addComment(Comment comment)
boolean
CommentsCollection. contains(Comment comment)
Node
Comment. setComment(Comment comment)
Constructor parameters in com.github.javaparser.ast.comments with type arguments of type Comment Constructor Description CommentsCollection(Collection<Comment> commentsToCopy)
-
Uses of Comment in com.github.javaparser.ast.nodeTypes
Methods in com.github.javaparser.ast.nodeTypes that return types with arguments of type Comment Modifier and Type Method Description Optional<Comment>
NodeWithJavadoc. getComment()
Optional<Comment>
SwitchNode. getComment()
Methods in com.github.javaparser.ast.nodeTypes with parameters of type Comment Modifier and Type Method Description Node
NodeWithJavadoc. setComment(Comment comment)
-
Uses of Comment in com.github.javaparser.printer
Method parameters in com.github.javaparser.printer with type arguments of type Comment Modifier and Type Method Description protected void
DefaultPrettyPrinterVisitor. printComment(Optional<Comment> comment, Void arg)
protected void
PrettyPrintVisitor. printComment(Optional<Comment> comment, Void arg)
Deprecated.
-