public class CommentUtils
extends java.lang.Object
| Constructor and Description |
|---|
CommentUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<Comment> |
getContainedComments(ASTNode node)
Returns a list of comments that are contained within the given node in the
main source file.
|
static Comment |
getFollowingComment(ASTNode node)
Finds a comment that follows the given node in the main source file.
|
static ASTNode |
getFollowingNonComment(Comment comment)
Finds a non-comment that follows the given comment in the main source file.
|
static Comment |
getPrecedingComment(ASTNode node)
Finds a comment that precedes the given node in the main source file.
|
static ASTNode |
getPrecedingNonComment(Comment comment)
Finds a non-comment that precedes the given comment in the main source file.
|
public static java.util.List<Comment> getContainedComments(ASTNode node)
node - public static Comment getPrecedingComment(ASTNode node)
node - public static Comment getFollowingComment(ASTNode node)
node - public static ASTNode getPrecedingNonComment(Comment comment)
comment -