Package | Description |
---|---|
com.github.javaparser.ast | |
com.github.javaparser.ast.comments |
Modifier and Type | Method and Description |
---|---|
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
|
Optional<? extends Comment> |
Node.getComment()
This is a comment associated with this node.
|
List<Comment> |
CompilationUnit.getComments()
Return a list containing all comments declared in this compilation unit.
|
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) |
Modifier and Type | Method and Description |
---|---|
Node |
Node.setComment(Optional<? extends 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 |
class |
LineComment
AST node that represent line comments.
|
Modifier and Type | Method and Description |
---|---|
Comment |
Comment.setCommentedNode(Node commentedNode) |
Comment |
Comment.setContent(String content)
Sets the text of the comment.
|
Modifier and Type | Method and Description |
---|---|
TreeSet<Comment> |
CommentsCollection.getComments() |
Modifier and Type | Method and Description |
---|---|
void |
CommentsCollection.addComment(Comment comment) |
boolean |
CommentsCollection.contains(Comment comment) |
Constructor and Description |
---|
CommentsCollection(Collection<Comment> commentsToCopy) |
Copyright © 2007–2016. All rights reserved.