|
org.openide.src 1.8.31 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JavaDoc
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 |
---|
static final int ADD
changeTags(org.openide.src.JavaDocTag[], int)
.
static final int REMOVE
changeTags(org.openide.src.JavaDocTag[], int)
.
static final int SET
changeTags(org.openide.src.JavaDocTag[], int)
.
Method Detail |
---|
String getRawText()
null
(isEmpty()
returns true
at the same time).
null
, if the comment is missing at all on the Element
.void setRawText(String s) throws SourceException
s
- the whole text to set
SourceException
- if the modification cannot be performedString getText()
void setText(String s) throws SourceException
s
- the actual text, without any (non-inline) tags
SourceException
- if the modification cannot be performedvoid clearJavaDoc() throws SourceException
SourceException
boolean isEmpty()
JavaDocTag[] getTags()
JavaDocTag[] getTags(String name)
void changeTags(JavaDocTag[] tags, int action) throws SourceException
tags
- the new initializersaction
- ADD
, REMOVE
, or SET
SourceException
- if impossibleJavaDocTag.See[] getSeeTags()
|
org.openide.src 1.8.31 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |