Class TagImpl
- java.lang.Object
-
- gw.gosudoc.com.sun.tools.javadoc.main.TagImpl
-
- All Implemented Interfaces:
Tag
- Direct Known Subclasses:
ParamTagImpl,SeeTagImpl,SerialFieldTagImpl,ThrowsTagImpl
@Deprecated class TagImpl extends java.lang.Object implements Tag
Deprecated.Represents a documentation tag, e.g. @since, @author, @version. Given a tag (e.g. "@since 1.2"), holds tag name (e.g. "@since") and tag text (e.g. "1.2"). TagImpls with structure or which require special processing are handled by subclasses (ParamTagImpl, SeeTagImpl, and ThrowsTagImplThis is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
- See Also:
SeeTagImpl,ParamTagImpl,ThrowsTagImpl,Doc.tags()
-
-
Field Summary
Fields Modifier and Type Field Description private Tag[]firstSentenceDeprecated.Cached first sentence.protected DocImplholderDeprecated.private Tag[]inlineTagsDeprecated.Cached inline tags.protected java.lang.StringnameDeprecated.protected java.lang.StringtextDeprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description (package private) java.lang.String[]divideAtWhite()Deprecated.for use by subclasses which have two part tag text.(package private) DocEnvdocenv()Deprecated.Tag[]firstSentenceTags()Deprecated.Return array of tags for the first sentence in the doc comment text.Docholder()Deprecated.Return the containingDocof this Tag element.Tag[]inlineTags()Deprecated.For documentation comment with embedded @link tags, return the array of TagImpls consisting of SeeTagImpl(s) and text containing TagImpl(s).java.lang.Stringkind()Deprecated.Return the kind of this tag.java.lang.Stringname()Deprecated.Return the name of this tag.SourcePositionposition()Deprecated.Return the doc item to which this tag is attached.java.lang.Stringtext()Deprecated.Return the text of this tag, that is, portion beyond tag name.java.lang.StringtoString()Deprecated.convert this object to a string.
-
-
-
Field Detail
-
text
protected final java.lang.String text
Deprecated.
-
name
protected final java.lang.String name
Deprecated.
-
holder
protected final DocImpl holder
Deprecated.
-
firstSentence
private Tag[] firstSentence
Deprecated.Cached first sentence.
-
inlineTags
private Tag[] inlineTags
Deprecated.Cached inline tags.
-
-
Constructor Detail
-
TagImpl
TagImpl(DocImpl holder, java.lang.String name, java.lang.String text)
Deprecated.Constructor
-
-
Method Detail
-
name
public java.lang.String name()
Deprecated.Return the name of this tag.
-
kind
public java.lang.String kind()
Deprecated.Return the kind of this tag.
-
text
public java.lang.String text()
Deprecated.Return the text of this tag, that is, portion beyond tag name.
-
docenv
DocEnv docenv()
Deprecated.
-
divideAtWhite
java.lang.String[] divideAtWhite()
Deprecated.for use by subclasses which have two part tag text.
-
toString
public java.lang.String toString()
Deprecated.convert this object to a string.
-
inlineTags
public Tag[] inlineTags()
Deprecated.For documentation comment with embedded @link tags, return the array of TagImpls consisting of SeeTagImpl(s) and text containing TagImpl(s). Within a comment string "This is an example of inline tags for a documentation comment{@link gw.gosudoc.com.sun.javadoc.Doc commentlabel}", where inside the inner braces, the first "Doc" carries exctly the same syntax as a SeeTagImpl and the second "commentlabel" is label for the Html Link, will return an array of TagImpl(s) with first element as TagImpl with comment text "This is an example of inline tags for a documentation comment" and second element as SeeTagImpl with referenced class as "Doc" and the label for the Html Link as "commentlabel".- Specified by:
inlineTagsin interfaceTag- Returns:
- TagImpl[] Array of tags with inline SeeTagImpls.
- See Also:
ParamTagImpl,ThrowsTagImpl
-
firstSentenceTags
public Tag[] firstSentenceTags()
Deprecated.Return array of tags for the first sentence in the doc comment text.- Specified by:
firstSentenceTagsin interfaceTag- Returns:
- an array of
Tagobjects representing the first sentence of the comment
-
position
public SourcePosition position()
Deprecated.Return the doc item to which this tag is attached.
-
-