Modifier and Type | Method and Description |
---|---|
private void |
CommentsInserter.attributeLineCommentsOnSameLine(java.util.TreeSet<Comment> commentsToAttribute,
java.util.List<Node> children) |
private void |
CommentsInserter.insertComments(CompilationUnit cu,
java.util.TreeSet<Comment> comments)
Comments are attributed to the thing they comment and are removed from
the comments.
|
(package private) void |
CommentsInserter.insertComments(Node node,
java.util.TreeSet<Comment> commentsToAttribute)
This method try to attributes the nodes received to child of the node.
|
Modifier and Type | Field and Description |
---|---|
private Comment |
Node.comment |
Modifier and Type | Field and Description |
---|---|
private java.util.List<Comment> |
Node.orphanComments |
Modifier and Type | Method and Description |
---|---|
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 Node
|
java.util.Optional<Comment> |
Node.getComment()
This is a comment associated with this node.
|
java.util.List<Comment> |
CompilationUnit.getComments()
Return a list containing all comments declared in this compilation unit.
|
java.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.
|
Modifier and Type | Method and Description |
---|---|
void |
Node.addOrphanComment(Comment comment) |
boolean |
Node.removeOrphanComment(Comment comment) |
Node |
Node.setComment(Comment comment)
Use this to store additional information to this node.
|
Modifier and Type | Class and Description |
---|---|
class |
BlockComment
AST node that represent block comments.
|
class |
JavadocComment
A Javadoc comment.
|
class |
LineComment
AST node that represent line comments.
|
Modifier and Type | Field and Description |
---|---|
private java.util.TreeSet<Comment> |
CommentsCollection.comments |
Modifier and Type | Method and Description |
---|---|
Comment |
Comment.clone() |
Comment |
Comment.setCommentedNode(Node commentedNode)
Sets the commentedNode
|
Comment |
Comment.setContent(java.lang.String content)
Sets the text of the comment.
|
Modifier and Type | Method and Description |
---|---|
java.util.TreeSet<Comment> |
CommentsCollection.getComments() |
Modifier and Type | Method and Description |
---|---|
void |
CommentsCollection.addComment(Comment comment) |
boolean |
CommentsCollection.contains(Comment comment) |
Constructor and Description |
---|
CommentsCollection(java.util.Collection<Comment> commentsToCopy) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<Comment> |
NodeWithJavadoc.getComment() |
Modifier and Type | Method and Description |
---|---|
Node |
NodeWithJavadoc.setComment(Comment comment) |
Modifier and Type | Method and Description |
---|---|
private void |
PrettyPrintVisitor.printJavaComment(java.util.Optional<Comment> javacomment,
java.lang.Void arg) |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
CsmComment.process(Comment comment,
SourcePrinter printer) |