Class CommentsCollection
- java.lang.Object
-
- com.github.javaparser.ast.comments.CommentsCollection
-
public class CommentsCollection extends Object
The comments contained in a certain parsed piece of source code.
-
-
Constructor Summary
Constructors Constructor Description CommentsCollection()
CommentsCollection(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()
Set<BlockComment>
getBlockComments()
TreeSet<Comment>
getComments()
Set<JavadocComment>
getJavadocComments()
Set<LineComment>
getLineComments()
CommentsCollection
minus(CommentsCollection other)
int
size()
-
-
-
Constructor Detail
-
CommentsCollection
public CommentsCollection()
-
CommentsCollection
public CommentsCollection(Collection<Comment> commentsToCopy)
-
-
Method Detail
-
getLineComments
public Set<LineComment> getLineComments()
-
getBlockComments
public Set<BlockComment> getBlockComments()
-
getJavadocComments
public Set<JavadocComment> getJavadocComments()
-
addComment
public void addComment(Comment comment)
-
contains
public boolean contains(Comment comment)
-
size
public int size()
-
minus
public CommentsCollection minus(CommentsCollection other)
-
copy
public CommentsCollection copy()
-
-