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 CommentGeneratedJavaParserTokenManagerBase.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 booleanCommentsInserter.commentIsOnNextLine(Node a, Comment c) Method parameters in com.github.javaparser with type arguments of type CommentModifier and TypeMethodDescriptionprivate voidCommentsInserter.attributeLineCommentsOnSameLine(TreeSet<Comment> commentsToAttribute, List<Node> children) private voidCommentsInserter.insertComments(CompilationUnit cu, TreeSet<Comment> comments) Comments are attributed to the thing they comment and are removed from the comments.(package private) voidCommentsInserter.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 TypeMethodDescriptionvoidNode.addOrphanComment(Comment comment) booleanNode.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 TypeClassDescriptionclassAST node that represent block comments.classclassAST node that represent line comments.classhttps://openjdk.org/jeps/467 added support for markdown JavaDoc comments /// That are prefixed with /// /// Support `markdown` markup and references /// And supports substrings not allowed in regular block comments, e.g.classA Javadoc comment.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 TypeMethodDescriptionvoidCommentsCollection.addComment(Comment comment) booleanComment.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 voidDefaultPrettyPrinterVisitor.printComment(Optional<Comment> comment, Void arg) Output a comment, if any.protected voidPrettyPrintVisitor.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 voidCsmComment.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) LexicalPreservingPrinter.Observer.getIndexAndCountOfCommentTokens(Comment oldValue, NodeText nodeText) private booleanLexicalPreservingPrinter.Observer.isSameComment(Comment childValue, Comment oldValue) private List<TokenTextElement> LexicalPreservingPrinter.Observer.makeCommentTokens(Comment newComment) private List<ChildTextElement> LexicalPreservingPrinter.Observer.selectMatchingChildElements(Comment oldValue, NodeText nodeText)
CompilationUnit.getAllComments()instead