Class LegacyTaglet

  • All Implemented Interfaces:
    Taglet

    @Deprecated
    public class LegacyTaglet
    extends java.lang.Object
    implements Taglet
    Deprecated.
    This taglet acts as a wrapper to enable Taglet type taglets to work with the current version of Javadoc. Note: this taglet only works with legacy taglets (those compatible with Javadoc 1.4.x) that writes strings. This taglet is able to wrap most most legacy taglets because the standard doclet is the only known doclet to use legacy taglets.

    This 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.

    Since:
    1.5
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Taglet legacyTaglet
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      LegacyTaglet​(Taglet t)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      Deprecated.
      Return the name of this custom tag.
      Content getTagletOutput​(Doc holder, TagletWriter writer)
      Deprecated.
      Given a Doc object, check if it holds any tags of this type.
      Content getTagletOutput​(Tag tag, TagletWriter writer)
      Deprecated.
      Given the Tag representation of this custom tag, return its Content representation, which is output to the generated page.
      boolean inConstructor()
      Deprecated.
      Return true if this Taglet is used in constructor documentation.
      boolean inField()
      Deprecated.
      Return true if this Taglet is used in field documentation.
      boolean inMethod()
      Deprecated.
      Return true if this Taglet is used in method documentation.
      boolean inOverview()
      Deprecated.
      Return true if this Taglet is used in overview documentation.
      boolean inPackage()
      Deprecated.
      Return true if this Taglet is used in package documentation.
      boolean inType()
      Deprecated.
      Return true if this Taglet is used in type documentation (classes or interfaces).
      boolean isInlineTag()
      Deprecated.
      Return true if this Taglet is an inline tag.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface gw.gosudoc.com.sun.tools.doclets.internal.toolkit.taglets.Taglet

        toString
    • Field Detail

      • legacyTaglet

        private Taglet legacyTaglet
        Deprecated.
    • Constructor Detail

      • LegacyTaglet

        public LegacyTaglet​(Taglet t)
        Deprecated.
    • Method Detail

      • inField

        public boolean inField()
        Deprecated.
        Return true if this Taglet is used in field documentation.
        Specified by:
        inField in interface Taglet
        Returns:
        true if this Taglet is used in field documentation and false otherwise.
      • inConstructor

        public boolean inConstructor()
        Deprecated.
        Return true if this Taglet is used in constructor documentation.
        Specified by:
        inConstructor in interface Taglet
        Returns:
        true if this Taglet is used in constructor documentation and false otherwise.
      • inMethod

        public boolean inMethod()
        Deprecated.
        Return true if this Taglet is used in method documentation.
        Specified by:
        inMethod in interface Taglet
        Returns:
        true if this Taglet is used in method documentation and false otherwise.
      • inOverview

        public boolean inOverview()
        Deprecated.
        Return true if this Taglet is used in overview documentation.
        Specified by:
        inOverview in interface Taglet
        Returns:
        true if this Taglet is used in method documentation and false otherwise.
      • inPackage

        public boolean inPackage()
        Deprecated.
        Return true if this Taglet is used in package documentation.
        Specified by:
        inPackage in interface Taglet
        Returns:
        true if this Taglet is used in package documentation and false otherwise.
      • inType

        public boolean inType()
        Deprecated.
        Return true if this Taglet is used in type documentation (classes or interfaces).
        Specified by:
        inType in interface Taglet
        Returns:
        true if this Taglet is used in type documentation and false otherwise.
      • isInlineTag

        public boolean isInlineTag()
        Deprecated.
        Return true if this Taglet is an inline tag.
        Specified by:
        isInlineTag in interface Taglet
        Returns:
        true if this Taglet is an inline tag and false otherwise.
      • getName

        public java.lang.String getName()
        Deprecated.
        Return the name of this custom tag.
        Specified by:
        getName in interface Taglet
        Returns:
        the name of this custom tag.
      • getTagletOutput

        public Content getTagletOutput​(Tag tag,
                                       TagletWriter writer)
                                throws java.lang.IllegalArgumentException
        Deprecated.
        Given the Tag representation of this custom tag, return its Content representation, which is output to the generated page.
        Specified by:
        getTagletOutput in interface Taglet
        Parameters:
        tag - the Tag representation of this custom tag.
        writer - a TagletWriter Taglet writer.
        Returns:
        the Content representation of this Tag.
        Throws:
        java.lang.IllegalArgumentException - thrown when the method is not supported by the taglet.
      • getTagletOutput

        public Content getTagletOutput​(Doc holder,
                                       TagletWriter writer)
                                throws java.lang.IllegalArgumentException
        Deprecated.
        Given a Doc object, check if it holds any tags of this type. If it does, return the string representing the output. If it does not, return null.
        Specified by:
        getTagletOutput in interface Taglet
        Parameters:
        holder - a Doc object holding the custom tag.
        writer - a TagletWriter Taglet writer.
        Returns:
        the TagletOutput representation of this Tag.
        Throws:
        java.lang.IllegalArgumentException - thrown when the method is not supported by the taglet.