|
org.netbeans.modules.java.source 0.80.1 17 | |||||||||
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)
Define a comment, using source file positions. |
static Comment |
create(Comment.Style style,
String text)
Define a comment, using specified style. |
static Comment |
create(String s)
Define a new block comment from a string. |
int |
endPos()
The end position in the source file, or 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 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 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)
s
- textual content of comment. With or without proper escaping
public static Comment create(Comment.Style style, int pos, int endPos, int indent, String text)
style
- the style of commentpos
- start position within source fileendPos
- end position within source fileindent
- indentation of commenttext
- textual content of comment. With or without proper escaping
public static Comment create(Comment.Style style, String text)
style
- the style of commentindent
- indentation of commenttext
- textual content of comment. With or without proper escaping
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()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
org.netbeans.modules.java.source 0.80.1 17 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |