Package | Description |
---|---|
org.netbeans.api.java.source |
Permits inspection and modification of the structure of Java sources.
|
Modifier and Type | Method and Description |
---|---|
static Comment |
Comment.create(Comment.Style style,
int pos,
int endPos,
int indent,
String text)
Define a comment, using source file positions.
|
static Comment |
Comment.create(Comment.Style style,
String text)
Define a comment, using specified style.
|
static Comment |
Comment.create(String s)
Define a new block comment from a string.
|
Modifier and Type | Method and Description |
---|---|
void |
TreeMaker.addComment(Tree tree,
Comment comment,
boolean preceding)
Append a comment to the list of comments attached to a given tree.
|
void |
TreeMaker.insertComment(Tree tree,
Comment comment,
int index,
boolean preceding)
Insert a comment to the list of comments attached to a given tree (to a specified position).
|