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 -
-
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>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()Return a list containing all comments declared in this compilation unit.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.Methods in com.github.javaparser.ast.comments that return Comment Modifier and Type Method Description CommentComment. clone()CommentComment. setCommentedNode(Node commentedNode)Sets the commentedNodeCommentComment. 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 voidCommentsCollection. addComment(Comment comment)booleanCommentsCollection. contains(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 NodeNodeWithJavadoc. setComment(Comment comment)
-