Top Description Fields Constructors Methods
com.github.javaparser.ast.comments

public Class CommentsCollection

extends Object
Class Inheritance
Imports
com.github.javaparser.Range, java.util.Collection, .Set, .TreeSet, java.util.stream.Collectors

The comments contained in a certain parsed piece of source code.

Field Summary

Modifier and TypeField and Description
private final TreeSet<Comment>

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public void
public boolean
contains(Comment comment)

public CommentsCollection
copy()

public Set<BlockComment>
public TreeSet<Comment>
public Set<JavadocComment>
public Set<LineComment>
public CommentsCollection
public int
size()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

commentsback to summary
private final TreeSet<Comment> comments

Constructor Detail

CommentsCollectionback to summary
public CommentsCollection()
CommentsCollectionback to summary
public CommentsCollection(Collection<Comment> commentsToCopy)

Method Detail

addCommentback to summary
public void addComment(Comment comment)
containsback to summary
public boolean contains(Comment comment)
copyback to summary
public CommentsCollection copy()
getBlockCommentsback to summary
public Set<BlockComment> getBlockComments()
getCommentsback to summary
public TreeSet<Comment> getComments()
getJavadocCommentsback to summary
public Set<JavadocComment> getJavadocComments()
getLineCommentsback to summary
public Set<LineComment> getLineComments()
minusback to summary
public CommentsCollection minus(CommentsCollection other)
sizeback to summary
public int size()