Methods Summary |
---|
public java.lang.String | commentText()Return the text of the comment for this doc item.
Tags have been removed.
|
public int | compareTo(java.lang.Object obj)Compares this doc object with the specified object for order. Returns a
negative integer, zero, or a positive integer as this doc object is less
than, equal to, or greater than the given object.
This method satisfies the {@link java.lang.Comparable} interface.
|
public com.sun.javadoc.Tag[] | firstSentenceTags()Return the first sentence of the comment as an array of tags.
Includes inline tags
(i.e. {@link reference} tags) but not
block tags.
Each section of plain text is represented as a {@link Tag}
of {@linkplain Tag#kind() kind} "Text".
Inline tags are represented as a {@link SeeTag} of kind "@see"
and name "@link".
If the locale is English language, the first sentence is
determined by the rules described in the Java Language
Specification (first version): "This sentence ends
at the first period that is followed by a blank, tab, or
line terminator or at the first tagline.", in
addition a line will be terminated by block
HTML tags: <p> </p> <h1>
<h2> <h3> <h4> <h5> <h6>
<hr> <pre> or </pre>.
If the locale is not English, the sentence end will be
determined by
{@link java.text.BreakIterator#getSentenceInstance(Locale)
java.text.BreakIterator.getSentenceInstance(Locale)}.
|
public java.lang.String | getRawCommentText()Return the full unprocessed text of the comment. Tags
are included as text. Used mainly for store and retrieve
operations like internalization.
|
public com.sun.javadoc.Tag[] | inlineTags()Return comment as an array of tags. Includes inline tags
(i.e. {@link reference} tags) but not
block tags.
Each section of plain text is represented as a {@link Tag}
of {@linkplain Tag#kind() kind} "Text".
Inline tags are represented as a {@link SeeTag} of kind "@see"
and name "@link".
|
public boolean | isAnnotationType()Is this Doc item an annotation type?
|
public boolean | isAnnotationTypeElement()Is this Doc item an annotation type element?
|
public boolean | isClass()Is this Doc item a
class
(and not an interface or annotation type)?
This includes ordinary classes, enums, errors and exceptions.
|
public boolean | isConstructor()Is this Doc item a constructor?
|
public boolean | isEnum()Is this Doc item an enum type?
|
public boolean | isEnumConstant()Is this Doc item an enum constant?
|
public boolean | isError()Is this Doc item an error class?
|
public boolean | isException()Is this Doc item an exception class?
|
public boolean | isField()Is this Doc item a field (but not an enum constant)?
|
public boolean | isIncluded()Return true if this Doc item is
included
in the result set.
|
public boolean | isInterface()Is this Doc item an interface (but not an annotation type)?
|
public boolean | isMethod()Is this Doc item a method (but not a constructor or annotation
type element)?
|
public boolean | isOrdinaryClass()Is this Doc item an
ordinary
class?
(i.e. not an interface, annotation type, enum, exception, or error)?
|
public java.lang.String | name()Returns the non-qualified name of this Doc item.
|
public com.sun.javadoc.SourcePosition | position()Return the source position of the first line of the
corresponding declaration, or null if
no position is available. A default constructor returns
null because it has no location in the source file.
|
public com.sun.javadoc.SeeTag[] | seeTags()Return the see also tags in this Doc item.
|
public void | setRawCommentText(java.lang.String rawDocumentation)Set the full unprocessed text of the comment. Tags
are included as text. Used mainly for store and retrieve
operations like internalization.
|
public com.sun.javadoc.Tag[] | tags()Return all tags in this Doc item.
|
public com.sun.javadoc.Tag[] | tags(java.lang.String tagname)Return tags of the specified {@linkplain Tag#kind() kind} in
this Doc item.
For example, if 'tagname' has value "@serial", all tags in
this Doc item of kind "@serial" will be returned.
|