Uses of Class
com.github.javaparser.ast.comments.Comment
-
-
Uses of Comment in com.github.javaparser
Methods in com.github.javaparser that return Comment Modifier and Type Method Description (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 Comment Modifier and Type Method Description private booleanCommentsInserter. commentIsOnNextLine(Node a, Comment c)Method parameters in com.github.javaparser with type arguments of type Comment Modifier and Type Method Description private voidCommentsInserter. attributeLineCommentsOnSameLine(java.util.TreeSet<Comment> commentsToAttribute, java.util.List<Node> children)private voidCommentsInserter. insertComments(CompilationUnit cu, java.util.TreeSet<Comment> comments)Comments are attributed to the thing they comment and are removed from the comments.(package private) voidCommentsInserter. insertComments(Node node, java.util.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 Comment Modifier and Type Field Description private CommentNode. commentFields in com.github.javaparser.ast with type parameters of type Comment Modifier and Type Field Description private java.util.ArrayList<Comment>Node. orphanCommentsMethods in com.github.javaparser.ast that return types with arguments of type Comment Modifier and Type Method Description java.util.List<Comment>CompilationUnit. getAllComments()Return a list containing all comments declared in this compilation unit.java.util.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 Nodejava.util.Optional<Comment>Node. getComment()This is a comment associated with this node.java.util.List<Comment>CompilationUnit. getComments()Deprecated.getComments was a too generic name and it could be confused with getComment or getAllContainedComments UseCompilationUnit.getAllComments()insteadjava.util.List<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 voidNode. addOrphanComment(Comment comment)booleanNode. removeOrphanComment(Comment comment)NodeNode. 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 classBlockCommentAST node that represent block comments.classJavadocCommentA Javadoc comment.classLineCommentAST node that represent line comments.Fields in com.github.javaparser.ast.comments with type parameters of type Comment Modifier and Type Field Description private java.util.TreeSet<Comment>CommentsCollection. commentsMethods in com.github.javaparser.ast.comments that return Comment Modifier and Type Method Description CommentComment. clone()CommentComment. setCommentedNode(Node commentedNode)Sets the commentedNodeCommentComment. setContent(java.lang.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 java.util.TreeSet<Comment>CommentsCollection. getComments()Methods in com.github.javaparser.ast.comments with parameters of type Comment Modifier and Type Method Description voidCommentsCollection. addComment(Comment comment)booleanCommentsCollection. contains(Comment comment)NodeComment. setComment(Comment comment)Constructor parameters in com.github.javaparser.ast.comments with type arguments of type Comment Constructor Description CommentsCollection(java.util.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 java.util.Optional<Comment>NodeWithJavadoc. getComment()java.util.Optional<Comment>SwitchNode. getComment()Methods in com.github.javaparser.ast.nodeTypes with parameters of type Comment Modifier and Type Method Description NodeNodeWithJavadoc. 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 voidDefaultPrettyPrinterVisitor. printComment(java.util.Optional<Comment> comment, java.lang.Void arg)protected voidPrettyPrintVisitor. printComment(java.util.Optional<Comment> comment, java.lang.Void arg)Deprecated. -
Uses of Comment in com.github.javaparser.printer.concretesyntaxmodel
Methods in com.github.javaparser.printer.concretesyntaxmodel with parameters of type Comment Modifier and Type Method Description (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 Comment Modifier and Type Method Description private java.util.List<ChildTextElement>LexicalPreservingPrinter.Observer. findChildTextElementForComment(Comment oldValue, NodeText nodeText)private java.util.List<TokenTextElement>LexicalPreservingPrinter.Observer. findTokenTextElementForComment(Comment oldValue, NodeText nodeText)private intLexicalPreservingPrinter.Observer. getIndexOfComment(Comment oldValue, NodeText nodeText)private booleanLexicalPreservingPrinter.Observer. isSameComment(Comment childValue, Comment oldValue)private TokenTextElementLexicalPreservingPrinter.Observer. makeCommentToken(Comment newComment)private java.util.List<ChildTextElement>LexicalPreservingPrinter.Observer. selectMatchingChildElements(Comment oldValue, NodeText nodeText)
-