|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.mjdoc.mjdoc_142.MjDoc
This abstract class provides an implementation of the Doclet Doc class. Each Doc object represents a syntatical item, such as a field, method, or class and may have a javadoc comment associated with it.
| Field Summary | |
private boolean |
included
Holds the value indicating whether this file is included in the documentation being generated. |
protected MjTagParser |
parser
Holds an object that contains a representation of the javadoc comment associated with this Doc item (once initialized with the javadoc comment text). |
| Constructor Summary | |
MjDoc()
|
|
| Method Summary | |
java.lang.String |
commentText()
Returns the descriptive section of the javadoc comment as unparsed text. |
protected java.lang.String |
compareString()
This generates the String representation used by compareTo. |
int |
compareTo(java.lang.Object o)
This compares two Doc objects. |
abstract com.sun.javadoc.PackageDoc |
containingPackage()
Returns the package this Doc is in. |
com.sun.javadoc.Tag[] |
firstSentenceTags()
Returns the summary of the description of the javadoc comment (as set by setRawCommentText) as a sequence of tags. |
java.lang.String |
getRawCommentText()
Returns the full unparsed javadoc comment (as set by setRawCommentText). |
com.sun.javadoc.Tag[] |
inlineTags()
Returns the descriptive section of the javadoc comment (as set by setRawCommentText) as parsed into a sequence of Text and inline tags. |
boolean |
isClass()
Returns true if this Doc element represents a class (not an interface, field, method, constructor). |
boolean |
isConstructor()
Returns true if this Doc element represents a constructor. |
boolean |
isError()
Returns true if this Doc element represents a class derived from java.lang.Error. |
boolean |
isException()
Returns true if this Doc element represents a class derived from java.lang.Exception. |
boolean |
isField()
Returns true if this Doc element represents a field. |
boolean |
isIncluded()
Returns true if this Doc is in the active set. |
boolean |
isInterface()
Returns true if this Doc element represents an interface (as opposed to a class, method or field). |
boolean |
isMethod()
Returns true if this Doc element represents a method (but not a constructor). |
boolean |
isOrdinaryClass()
Returns true if this Doc element represents a class that is not an interface, error or exception class. |
abstract java.lang.String |
name()
Returns the name of the item, as interpreted by derived classes. |
protected void |
notImplemented(java.lang.String s)
This is called by derived classes in methods that are not implemented or are not expected to be called. |
com.sun.javadoc.SourcePosition |
position()
|
com.sun.javadoc.SeeTag[] |
seeTags()
Returns the sequence of tags representing all the '@see' tags in the tag section of the javadoc comment as set in setRawCommentText. |
void |
setIncluded(boolean b)
Sets the included field. |
void |
setRawCommentText()
|
void |
setRawCommentText(java.lang.String rawDocumentation)
Deprecated. |
void |
setRawCommentText(java.lang.String rawDocumentation,
com.sun.javadoc.SourcePosition sp)
|
void |
setRawCommentText(java.lang.String rawDocumentation,
TokenReference tok)
|
com.sun.javadoc.Tag[] |
tags()
Returns the sequence of tags representing the tag section of the javadoc comment as set in setRawCommentText. |
com.sun.javadoc.Tag[] |
tags(java.lang.String tagkind)
Returns the sequence of tags representing all the tags with the given 'kind' in the tag section of the javadoc comment as set in setRawCommentText. |
com.sun.javadoc.Tag[] |
tags(java.lang.String tagkind,
com.sun.javadoc.Tag[] type)
Returns the sequence of tags representing all the tags with the given 'kind' in the tag section of the javadoc comment as set in setRawCommentText. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected MjTagParser parser
private boolean included
| Constructor Detail |
public MjDoc()
| Method Detail |
public java.lang.String commentText()
commentText in interface com.sun.javadoc.Docpublic int compareTo(java.lang.Object o)
compareTo in interface com.sun.javadoc.Docprotected java.lang.String compareString()
public com.sun.javadoc.Tag[] firstSentenceTags()
firstSentenceTags in interface com.sun.javadoc.Docpublic java.lang.String getRawCommentText()
getRawCommentText in interface com.sun.javadoc.Docpublic com.sun.javadoc.Tag[] inlineTags()
inlineTags in interface com.sun.javadoc.Docpublic boolean isClass()
isClass in interface com.sun.javadoc.Docpublic boolean isConstructor()
isConstructor in interface com.sun.javadoc.Docpublic boolean isError()
isError in interface com.sun.javadoc.Docpublic boolean isException()
isException in interface com.sun.javadoc.Docpublic boolean isField()
isField in interface com.sun.javadoc.Docpublic boolean isIncluded()
isIncluded in interface com.sun.javadoc.Docpublic void setIncluded(boolean b)
public boolean isInterface()
isInterface in interface com.sun.javadoc.Docpublic boolean isMethod()
isMethod in interface com.sun.javadoc.Docpublic boolean isOrdinaryClass()
isOrdinaryClass in interface com.sun.javadoc.Docpublic abstract java.lang.String name()
name in interface com.sun.javadoc.Docpublic abstract com.sun.javadoc.PackageDoc containingPackage()
public com.sun.javadoc.SeeTag[] seeTags()
seeTags in interface com.sun.javadoc.Docpublic void setRawCommentText(java.lang.String rawDocumentation)
setRawCommentText in interface com.sun.javadoc.Docpublic void setRawCommentText()
public void setRawCommentText(java.lang.String rawDocumentation,
TokenReference tok)
public void setRawCommentText(java.lang.String rawDocumentation,
com.sun.javadoc.SourcePosition sp)
public com.sun.javadoc.Tag[] tags()
tags in interface com.sun.javadoc.Docpublic com.sun.javadoc.Tag[] tags(java.lang.String tagkind)
tags in interface com.sun.javadoc.Doc
public com.sun.javadoc.Tag[] tags(java.lang.String tagkind,
com.sun.javadoc.Tag[] type)
protected void notImplemented(java.lang.String s)
public com.sun.javadoc.SourcePosition position()
position in interface com.sun.javadoc.Doc
|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||