| java.lang.Object org.netbeans.napi.gsfret.source.Comment
Comment | final public class Comment (Code) | | This file is originally from Retouche, the Java Support
infrastructure in NetBeans. I have modified the file as little
as possible to make merging Retouche fixes back as simple as
possible.
An individual comment, consisting of a style, begin and end source
file position, the indention (column) of its first character, and its text.
|
Inner Class :public enum Style | |
Method Summary | |
public static Comment | create(Style style, int pos, int endPos, int indent, String text) Define a new block comment from a string. | public int | endPos() The end position in the source file, or Query.NOPOS if the
comment was added by a translation operation. | public boolean | equals(Object obj) | public String | getText() Returns the comment text. | public int | hashCode() | public int | indent() Returns the line indention for this comment, or Query.NOPOS if the
comment was added by a translation operation. | public boolean | isDocComment() Returns true if this is a JavaDoc comment. | public int | pos() The start position in the source file, or Query.NOPOS if the
comment was added by a translation operation. | public Style | style() | public String | toString() |
create | public static Comment create(Style style, int pos, int endPos, int indent, String text)(Code) | | Define a new block comment from a string. This comment does not
have source file positions.
|
endPos | public int endPos()(Code) | | The end position in the source file, or Query.NOPOS if the
comment was added by a translation operation.
|
getText | public String getText()(Code) | | Returns the comment text.
|
hashCode | public int hashCode()(Code) | | |
indent | public int indent()(Code) | | Returns the line indention for this comment, or Query.NOPOS if the
comment was added by a translation operation.
|
isDocComment | public boolean isDocComment()(Code) | | Returns true if this is a JavaDoc comment.
|
pos | public int pos()(Code) | | The start position in the source file, or Query.NOPOS if the
comment was added by a translation operation.
|
style | public Style style()(Code) | | |
|
|