|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents a JavaDoc comment block. The representation object is mutable,
if it represents a portion of a source text, any changes made to the object
are reflected in the source code and vice versa.
There are a few inerclasses, which subclass JavaDoc class, and add accessors for tags specific
to individual source text elements.
Nested Class Summary | |
static interface |
JavaDoc.Class
The JavaDoc of a class. |
static interface |
JavaDoc.Field
The JavaDoc of a field. |
static interface |
JavaDoc.Method
The JavaDoc of a method. |
Field Summary | |
static int |
ADD
Serves as second parameter in method changeTags(org.openide.src.JavaDocTag[], int) . |
static int |
REMOVE
Serves as second parameter in method changeTags(org.openide.src.JavaDocTag[], int) . |
static int |
SET
Serves as second parameter in method changeTags(org.openide.src.JavaDocTag[], int) . |
Method Summary | |
void |
changeTags(JavaDocTag[] tags,
int action)
Adds removes or sets tags used in this comment |
void |
clearJavaDoc()
Clears the javadoc from the source. |
String |
getRawText()
Get the entire text of the comment. |
JavaDocTag.See[] |
getSeeTags()
Gets all @see tags |
JavaDocTag[] |
getTags()
Gets all tags from comment. |
JavaDocTag[] |
getTags(String name)
Gets all tags of given name |
String |
getText()
Get the actual text, cleared of all (non-inline) tags. |
boolean |
isEmpty()
Test if this javadoc is empty. |
void |
setRawText(String s)
Set the raw text of the comment. |
void |
setText(String s)
Set the actual text. |
Field Detail |
public static final int ADD
changeTags(org.openide.src.JavaDocTag[], int)
.
public static final int REMOVE
changeTags(org.openide.src.JavaDocTag[], int)
.
public static final int SET
changeTags(org.openide.src.JavaDocTag[], int)
.
Method Detail |
public String getRawText()
null
(isEmpty()
returns true
at the same time).
null
, if the comment is missing at all on the Element
.public void setRawText(String s) throws SourceException
s
- the whole text to set
SourceException
- if the modification cannot be performedpublic String getText()
public void setText(String s) throws SourceException
s
- the actual text, without any (non-inline) tags
SourceException
- if the modification cannot be performedpublic void clearJavaDoc() throws SourceException
SourceException
public boolean isEmpty()
public JavaDocTag[] getTags()
public JavaDocTag[] getTags(String name)
public void changeTags(JavaDocTag[] tags, int action) throws SourceException
tags
- the new initializersaction
- ADD
, REMOVE
, or SET
SourceException
- if impossiblepublic JavaDocTag.See[] getSeeTags()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |