|
org.netbeans.modules.java.source 0.13.0 1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.api.java.source.Comment
public final class Comment
An individual comment, consisting of a style, begin and end source file position, the indention (column) of its first character, and its text.
Nested Class Summary | |
---|---|
static class |
Comment.Style
The set of different comment types. |
Method Summary | |
---|---|
static Comment |
create(Comment.Style style,
int pos,
int endPos,
int indent,
String text)
|
static Comment |
create(String s)
Define a new block comment from a string. |
int |
endPos()
The end position in the source file, or Query.NOPOS if the comment was added by a translation operation. |
boolean |
equals(Object obj)
|
String |
getText()
Returns the comment text. |
int |
hashCode()
|
int |
indent()
Returns the line indention for this comment, or Query.NOPOS if the comment was added by a translation operation. |
boolean |
isDocComment()
Returns true if this is a JavaDoc comment. |
boolean |
isNew()
|
int |
pos()
The start position in the source file, or Query.NOPOS if the comment was added by a translation operation. |
Comment.Style |
style()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static Comment create(String s)
public static Comment create(Comment.Style style, int pos, int endPos, int indent, String text)
public Comment.Style style()
public int pos()
public int endPos()
public int indent()
public boolean isDocComment()
public String getText()
public boolean isNew()
public String toString()
public boolean equals(Object obj)
public int hashCode()
|
org.netbeans.modules.java.source 0.13.0 1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |