class CommentsInserter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ParserConfiguration |
configuration |
Constructor and Description |
---|
CommentsInserter(ParserConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
private void |
attributeLineCommentsOnSameLine(java.util.TreeSet<Comment> commentsToAttribute,
java.util.List<Node> children) |
private boolean |
attributeLineCommentToNodeOrChild(Node node,
LineComment lineComment) |
private void |
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 |
insertComments(Node node,
java.util.TreeSet<Comment> commentsToAttribute)
This method try to attributes the nodes received to child of the node.
|
private boolean |
thereAreLinesBetween(Node a,
Node b) |
private final ParserConfiguration configuration
CommentsInserter(ParserConfiguration configuration)
private void insertComments(CompilationUnit cu, java.util.TreeSet<Comment> comments)
void insertComments(Node node, java.util.TreeSet<Comment> commentsToAttribute)
private void attributeLineCommentsOnSameLine(java.util.TreeSet<Comment> commentsToAttribute, java.util.List<Node> children)
private boolean attributeLineCommentToNodeOrChild(Node node, LineComment lineComment)