Uses of Class
com.github.javaparser.ast.comments.Comment
Packages that use Comment
Package
Description
-
Uses of Comment in com.github.javaparser
Methods in com.github.javaparser that return CommentModifier and TypeMethodDescription(package private) static Comment
GeneratedJavaParserTokenManagerBase.createCommentFromToken
(Token token) Since comments are completely captured in a single token, including their delimiters, deconstruct them here so we can turn them into nodes later on.Methods in com.github.javaparser with parameters of type CommentModifier and TypeMethodDescriptionprivate boolean
CommentsInserter.commentIsOnNextLine
(Node a, Comment c) Method parameters in com.github.javaparser with type arguments of type CommentModifier and TypeMethodDescriptionprivate void
CommentsInserter.attributeLineCommentsOnSameLine
(TreeSet<Comment> commentsToAttribute, List<Node> children) private void
CommentsInserter.insertComments
(CompilationUnit cu, TreeSet<Comment> comments) Comments are attributed to the thing they comment and are removed from the comments.(package private) void
CommentsInserter.insertComments
(Node node, TreeSet<Comment> commentsToAttribute) This method try to attributes the nodes received to child of the node. -
Uses of Comment in com.github.javaparser.ast
Fields in com.github.javaparser.ast declared as CommentFields in com.github.javaparser.ast with type parameters of type CommentMethods 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.Fields in com.github.javaparser.ast.comments with type parameters of type CommentMethods 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. -
Uses of Comment in com.github.javaparser.printer.concretesyntaxmodel
Methods in com.github.javaparser.printer.concretesyntaxmodel with parameters of type CommentModifier and TypeMethodDescription(package private) static void
CsmComment.process
(Comment comment, SourcePrinter printer) -
Uses of Comment in com.github.javaparser.printer.lexicalpreservation
Methods in com.github.javaparser.printer.lexicalpreservation with parameters of type CommentModifier and TypeMethodDescriptionprivate List
<ChildTextElement> LexicalPreservingPrinter.Observer.findChildTextElementForComment
(Comment oldValue, NodeText nodeText) private List
<TokenTextElement> LexicalPreservingPrinter.Observer.findTokenTextElementForComment
(Comment oldValue, NodeText nodeText) private int
LexicalPreservingPrinter.Observer.getIndexOfComment
(Comment oldValue, NodeText nodeText) private boolean
LexicalPreservingPrinter.Observer.isSameComment
(Comment childValue, Comment oldValue) private TokenTextElement
LexicalPreservingPrinter.Observer.makeCommentToken
(Comment newComment) private List
<ChildTextElement> LexicalPreservingPrinter.Observer.selectMatchingChildElements
(Comment oldValue, NodeText nodeText)
CompilationUnit.getAllComments()
instead