net.cscott.sinjdoc
public interface Doc extends Comparable<Doc>
Doc class is the abstract base class representing
all java language constructs (classes, packages, methods, etc) which
have comments and have been processed by this run of SinjDoc. All
Doc items are ReferenceUnique, that is, they
are == comparable.
Version: $Id: Doc.java,v 1.8 2003/07/31 23:05:26 cananian Exp $
See Also: com.sun.javadoc.Doc
| Method Summary | |
|---|---|
| String | commentText() Return the text of the comment for this doc item, with all
tags (including inline tags) removed. |
| int | compareTo(Doc d) Compares this Doc with the specified Doc
for order. |
| List<Tag> | firstSentenceTags()
Return the first sentence of the comment as tags. |
| String | getRawCommentText()
Return the full unprocessed text of the comment. |
| List<Tag> | inlineTags()
Return the documentation comment as tags. |
| boolean | isClass() Returns true if this doc item represents a non-interface class. |
| boolean | isConstructor() Returns true if this doc item represents a constructor. |
| boolean | isError() Returns true if this doc item represents an error class. |
| boolean | isException() Returns true if this doc item represents an exception class. |
| boolean | isField() Returns true if this doc item represents a field. |
| boolean | isIncluded() Returns true if javadoc will be generated from this item. |
| boolean | isInterface() Returns true if this doc item represents an interface. |
| boolean | isMethod() Returns true if this doc item represents a non-constructor method. |
| boolean | isOrdinaryClass() Returns true if this doc item represents a non-interface class which
is not an exception or error class. |
| String | name() Returns the non-qualified name of this Doc item. |
| SourcePosition | position() Returns the source position of the documented entity.
|
| List<Tag> | tags() Return all tags in this doc item. |
| List<Tag> | tags(String tagname) Return tags of the specified kind in this doc item. |
Doc with the specified Doc
for order.Tag of kind
"Text". An example of an inline tags is the SeeTag of
kind "link". The sentence end will be determined by
java.text.BreakIterator.getSentenceInstance(Locale).Returns: a list of Tags representing the first sentence
of the comment.
Tag of kind "Text", and
inline tags are also represented as Tag objects.
The list of Tags does not include regular tags, only
"text" and inline tags.Doc item.null.