|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.mjdoc.mjdoc_142.MjTag
This class is the abstract parent task for the various special kinds of tag objects that represent tags in javadoc comments. Generically speaking, a tag consists of a kind, a name, and a set of inline tags which, when rendered sequentially, constitute the description of the tag. Some tags in addition have other fields that are parsed from the javadoc comment, such as the name of a formal parameter or class of a thrown exception.
| Field Summary | |
protected com.sun.javadoc.Tag[] |
fstags
This holds the value for firstSentenceTags. |
private String |
name
The name of the tag. |
protected MjDoc |
owner
The Doc object to which this tag belongs. |
protected com.sun.javadoc.SourcePosition |
position
The SourcePosition giving the location of this tag; currently the source position of the javadoc comment. |
protected com.sun.javadoc.Tag[] |
tags
The sequence of inline tags that constitute the description of the tag. |
private String |
text
The raw, unparsed text of the tag. |
| Constructor Summary | |
MjTag(com.sun.javadoc.Doc owner,
String n,
String t)
A constructor for this parent class, which sets the name and unparsed text. |
|
MjTag(com.sun.javadoc.Doc owner,
String n,
String t,
com.sun.javadoc.SourcePosition pos)
|
|
| Method Summary | |
MjClassDoc |
containingClass()
Returns the class that this tag modifies or is in (note that 'owner' is the program element the tag modifies. |
(package private) static MjTag |
create(com.sun.javadoc.Doc owner,
String rawText,
com.sun.javadoc.SourcePosition pos)
This static method parses the text from a javadoc comment tag to create the correct derived class instance of tag; the argument must begin with whitespace and an '@' symbol representing the start of the tag. |
com.sun.javadoc.Tag[] |
firstSentenceTags()
This returns the value that javadoc returns for the dervied classes. |
com.sun.javadoc.Doc |
holder()
Accessor method to return the owner of the tag. |
com.sun.javadoc.Tag[] |
inlineTags()
Returns the descriptionm (the text) of the tag as a sequence of tags (typically text and inline tags such as link tags). |
com.sun.javadoc.Tag[] |
inlineTags(String description,
com.sun.javadoc.SourcePosition pos)
This helper method is used by some derived classes to convert raw, unparsed javadoc comment text into a sequence of tags (text and inline tags such as link tags), as must be assigned to the 'tags' protected variable and is returned by the inlineTags() method. |
abstract String |
kind()
This method must be overridden by derived classes to return the 'kind' of the tag. |
String |
name()
Accessor method to return the name of the tag. |
com.sun.javadoc.SourcePosition |
position()
|
MjClassDoc |
resolveReference(String name)
This is used by tags to resolve references to classes as they are given in tags (such as @see, @link, @throws, @exception tags). |
String |
text()
Accessor method to return the unparsed text of tag. |
String |
toString()
Makes a String representation of the tag. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private String text
private String name
protected com.sun.javadoc.Tag[] tags
protected com.sun.javadoc.Tag[] fstags
protected MjDoc owner
protected com.sun.javadoc.SourcePosition position
| Constructor Detail |
public MjTag(com.sun.javadoc.Doc owner,
String n,
String t)
n - the name of the javadoc comment tagt - the unparsed text of the javadoc comment tag
public MjTag(com.sun.javadoc.Doc owner,
String n,
String t,
com.sun.javadoc.SourcePosition pos)
| Method Detail |
public MjClassDoc containingClass()
public com.sun.javadoc.Tag[] firstSentenceTags()
firstSentenceTags in interface com.sun.javadoc.Tagpublic com.sun.javadoc.Tag[] inlineTags()
inlineTags in interface com.sun.javadoc.Tagpublic abstract String kind()
kind in interface com.sun.javadoc.Tagpublic com.sun.javadoc.Doc holder()
holder in interface com.sun.javadoc.Tagpublic String name()
name in interface com.sun.javadoc.Tagpublic String text()
text in interface com.sun.javadoc.Tagpublic String toString()
toString in interface com.sun.javadoc.TagtoString in class Object
static MjTag create(com.sun.javadoc.Doc owner,
String rawText,
com.sun.javadoc.SourcePosition pos)
public com.sun.javadoc.Tag[] inlineTags(String description,
com.sun.javadoc.SourcePosition pos)
public MjClassDoc resolveReference(String name)
name - identifier or '.'-separated name of a classpublic com.sun.javadoc.SourcePosition position()
position in interface com.sun.javadoc.Tag
|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||