|
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
org.multijava.mjdoc.mjdoc_142.MjThrowsTag
This class represents a 'throws' tag in a javadoc comment, which has an exception name and a description; the description itself is composed of a sequence of text and inline tags.
| Field Summary | |
private String |
comment
A holder for the text of the description (but ordinarily you will want to use the sequence of tags provided by inlineTags() ). |
private MjClassDoc |
exception
Cached value of the class of the exception. |
static String |
KIND
A constant defining the 'kind' of this tag, as defined for Tag. |
static String |
KIND2
An alternate tagname, a synonym for 'throws'. |
private static MjClassDoc |
mjRuntimeError
The MjClassDoc object for java.lang.Error . |
private static MjClassDoc |
mjRuntimeException
The MjClassDoc object for java.lang.RuntimeException . |
private String |
name
A holder for the name of the class of the exception. |
private String |
tagname
A holder for the name of the tag (@throws or @exception). |
| Fields inherited from class org.multijava.mjdoc.mjdoc_142.MjTag |
fstags, owner, position, tags |
| Constructor Summary | |
MjThrowsTag(com.sun.javadoc.Doc owner,
String tagname,
String t,
com.sun.javadoc.SourcePosition pos)
A constructor for the tag object; the argument is the String that follows '@throws'; it will be parsed into an exception name and the inline tags constituting the description. |
|
| Method Summary | |
com.sun.javadoc.ClassDoc |
exception()
Returns the exception referenced in the tag as a MjClassDoc object. |
String |
exceptionComment()
Returns the unparsed comment text; ordinarily you will want to use the inlineTags() . |
String |
exceptionName()
Returns the fully-qualified class name of the exception given in the javadoc comment. |
String |
kind()
Returns the 'kind' of this tag, as required by the Tag interface. |
String |
name()
Returns the actual name (@throws or @exception) used for the tag. |
(package private) static boolean |
unchecked(MjClassDoc exception)
Returns true if the argument represents an unchecked Java Throwable class, that is one that need not be declared in the throws-list of a method declaration. |
| Methods inherited from class org.multijava.mjdoc.mjdoc_142.MjTag |
containingClass, create, firstSentenceTags, holder, inlineTags, inlineTags, position, resolveReference, text, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sun.javadoc.Tag |
firstSentenceTags, holder, inlineTags, position, text, toString |
| Field Detail |
public static final String KIND
public static final String KIND2
private String tagname
private MjClassDoc exception
private String name
private String comment
private static MjClassDoc mjRuntimeException
private static MjClassDoc mjRuntimeError
| Constructor Detail |
public MjThrowsTag(com.sun.javadoc.Doc owner,
String tagname,
String t,
com.sun.javadoc.SourcePosition pos)
| Method Detail |
public String kind()
kind in interface com.sun.javadoc.Tagpublic String name()
name in interface com.sun.javadoc.Tagname in class MjTagstatic boolean unchecked(MjClassDoc exception)
public com.sun.javadoc.ClassDoc exception()
exception in interface com.sun.javadoc.ThrowsTagpublic String exceptionComment()
exceptionComment in interface com.sun.javadoc.ThrowsTagpublic String exceptionName()
exceptionName in interface com.sun.javadoc.ThrowsTag
|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||