Class CommentsCollection
- java.lang.Object
-
- com.github.javaparser.ast.comments.CommentsCollection
-
public class CommentsCollection extends java.lang.Object
The comments contained in a certain parsed piece of source code.
-
-
Constructor Summary
Constructors Constructor Description CommentsCollection()
CommentsCollection(java.util.Collection<Comment> commentsToCopy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addComment(Comment comment)
boolean
contains(Comment comment)
CommentsCollection
copy()
java.util.Set<BlockComment>
getBlockComments()
java.util.TreeSet<Comment>
getComments()
java.util.Set<JavadocComment>
getJavadocComments()
java.util.Set<LineComment>
getLineComments()
CommentsCollection
minus(CommentsCollection other)
int
size()
-
-
-
Field Detail
-
comments
private final java.util.TreeSet<Comment> comments
-
-
Constructor Detail
-
CommentsCollection
public CommentsCollection()
-
CommentsCollection
public CommentsCollection(java.util.Collection<Comment> commentsToCopy)
-
-
Method Detail
-
getLineComments
public java.util.Set<LineComment> getLineComments()
-
getBlockComments
public java.util.Set<BlockComment> getBlockComments()
-
getJavadocComments
public java.util.Set<JavadocComment> getJavadocComments()
-
addComment
public void addComment(Comment comment)
-
contains
public boolean contains(Comment comment)
-
getComments
public java.util.TreeSet<Comment> getComments()
-
size
public int size()
-
minus
public CommentsCollection minus(CommentsCollection other)
-
copy
public CommentsCollection copy()
-
-