org.aspsimon.javadoc
Class ToDoTaglet

java.lang.Object
  extended by org.aspsimon.javadoc.ToDoTaglet
All Implemented Interfaces:
com.sun.tools.doclets.Taglet

public class ToDoTaglet
extends java.lang.Object
implements com.sun.tools.doclets.Taglet

A simple Taglet representing @todo. This tag can be used in any kind of Doc. It is not an inline tag. The text is displayed as a bulleted list.

Version:
$Revision: 1.4 $
Author:
Simon Bailey

Constructor Summary
ToDoTaglet()
           
 
Method Summary
 java.lang.String getName()
          Return the name of this custom tag.
 boolean inConstructor()
          Will return true since @todo can be used in constructor documentation.
 boolean inField()
          Will return false since @todo should not be used in field documentation.
 boolean inMethod()
          Will return true since @todo can be used in method documentation.
 boolean inOverview()
          Will return true since @todo can be used in overview documentation.
 boolean inPackage()
          Will return true since @todo can be used in package documentation.
 boolean inType()
          Will return true since @todo can be used in type documentation (classes or interfaces).
 boolean isInlineTag()
          Will return false since @todo is not an inline tag.
static void register(java.util.Map<java.lang.String,com.sun.tools.doclets.Taglet> tagletMap)
          Register this Taglet.
 java.lang.String toString(com.sun.javadoc.Tag tag)
          Given the Tag representation of this custom tag, return its string representation.
 java.lang.String toString(com.sun.javadoc.Tag[] tags)
          Given an array of Tags representing this custom tag, return its string representation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToDoTaglet

public ToDoTaglet()
Method Detail

getName

public java.lang.String getName()
Return the name of this custom tag.

Specified by:
getName in interface com.sun.tools.doclets.Taglet

inField

public boolean inField()
Will return false since @todo should not be used in field documentation.

Specified by:
inField in interface com.sun.tools.doclets.Taglet
Returns:
false

inConstructor

public boolean inConstructor()
Will return true since @todo can be used in constructor documentation.

Specified by:
inConstructor in interface com.sun.tools.doclets.Taglet
Returns:
true

inMethod

public boolean inMethod()
Will return true since @todo can be used in method documentation.

Specified by:
inMethod in interface com.sun.tools.doclets.Taglet
Returns:
true

inOverview

public boolean inOverview()
Will return true since @todo can be used in overview documentation.

Specified by:
inOverview in interface com.sun.tools.doclets.Taglet
Returns:
true

inPackage

public boolean inPackage()
Will return true since @todo can be used in package documentation.

Specified by:
inPackage in interface com.sun.tools.doclets.Taglet
Returns:
true

inType

public boolean inType()
Will return true since @todo can be used in type documentation (classes or interfaces).

Specified by:
inType in interface com.sun.tools.doclets.Taglet
Returns:
true

isInlineTag

public boolean isInlineTag()
Will return false since @todo is not an inline tag.

Specified by:
isInlineTag in interface com.sun.tools.doclets.Taglet
Returns:
false

register

public static void register(java.util.Map<java.lang.String,com.sun.tools.doclets.Taglet> tagletMap)
Register this Taglet. Changed the implementation of the signature to be compliant with generics and get rid of compiler warnings. This is not done in the Taglet examples online.

Parameters:
tagletMap - the map to register this tag to.

toString

public java.lang.String toString(com.sun.javadoc.Tag tag)
Given the Tag representation of this custom tag, return its string representation.

Specified by:
toString in interface com.sun.tools.doclets.Taglet
Parameters:
tag - the Tag representation of this custom tag.

toString

public java.lang.String toString(com.sun.javadoc.Tag[] tags)
Given an array of Tags representing this custom tag, return its string representation.

Specified by:
toString in interface com.sun.tools.doclets.Taglet
Parameters:
tags - the array of Tags representing of this custom tag.