| Modifier and Type | Field and Description |
|---|---|
| private final ParserConfiguration |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private boolean | |
| private void | insertComments(CompilationUnit cu, TreeSet<Comment> comments)
Comments are attributed to the thing they comment and are removed from the comments. |
| pack-priv void | insertComments(Node node, TreeSet<Comment> commentsToAttribute)
This method try to attributes the nodes received to child of the node. |
| private boolean |
| configuration | back to summary |
|---|---|
| private final ParserConfiguration configuration | |
| CommentsInserter | back to summary |
|---|---|
| pack-priv CommentsInserter(ParserConfiguration configuration) | |
| attributeLineCommentsOnSameLine | back to summary |
|---|---|
| private void attributeLineCommentsOnSameLine(TreeSet<Comment> commentsToAttribute, List<Node> children) | |
| attributeLineCommentToNodeOrChild | back to summary |
|---|---|
| private boolean attributeLineCommentToNodeOrChild(Node node, LineComment lineComment) | |
| insertComments | back to summary |
|---|---|
| private void insertComments(CompilationUnit cu, TreeSet<Comment> comments) Comments are attributed to the thing they comment and are removed from the comments. | |
| insertComments | back to summary |
|---|---|
| pack-priv void insertComments(Node node, TreeSet<Comment> commentsToAttribute) This method try to attributes the nodes received to child of the node. It returns the node that were not attributed. | |
| thereAreLinesBetween | back to summary |
|---|---|
| private boolean thereAreLinesBetween(Node a, Node b) | |