org.sandev.generator.tags
Class AbstractSandBaseTag

java.lang.Object
  extended by org.sandev.generator.tags.AbstractSandBaseTag
All Implemented Interfaces:
com.sun.tools.doclets.Taglet
Direct Known Subclasses:
AbstractSandClassTag, AbstractSandFieldTag, AbstractSandGeneralTag

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

Abstract base class for all SAND tag definitions. A tag definition supports SandGenerator tag processing through existence testing, and parameter access methods. It also supports tag documentation through the javadoc taglet interface.

To set up a tag, define a new tag extending the appropriate subclass of this abstract base. To define the tag processing part:

To set up the taglet processing part:

See the source of the existing tags for details.


Field Summary
static java.lang.String PREFIX
          This was originally set to the empty string, so all the tags were at the top level.
 
Constructor Summary
AbstractSandBaseTag()
           
 
Method Summary
 boolean inConstructor()
           
 boolean inField()
           
 boolean inMethod()
           
 boolean inOverview()
           
 boolean inPackage()
           
 boolean inType()
           
 boolean isInlineTag()
           
static void register(java.util.Map tagletMap)
          Register this Taglet.
static void registerHelper(java.util.Map tagletMap, com.sun.tools.doclets.Taglet tag)
          Helper method for register(java.util.Map).
abstract  java.lang.String toString(com.sun.javadoc.Tag tag)
          Given the Tag representation of this custom tag, return its string representation.
abstract  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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.tools.doclets.Taglet
getName
 

Field Detail

PREFIX

public static final java.lang.String PREFIX
This was originally set to the empty string, so all the tags were at the top level. Now everything starts with sand.

See Also:
Constant Field Values
Constructor Detail

AbstractSandBaseTag

public AbstractSandBaseTag()
Method Detail

inField

public boolean inField()
Specified by:
inField in interface com.sun.tools.doclets.Taglet
Returns:
false

inConstructor

public boolean inConstructor()
Specified by:
inConstructor in interface com.sun.tools.doclets.Taglet
Returns:
false

inMethod

public boolean inMethod()
Specified by:
inMethod in interface com.sun.tools.doclets.Taglet
Returns:
false

inOverview

public boolean inOverview()
Specified by:
inOverview in interface com.sun.tools.doclets.Taglet
Returns:
false

inPackage

public boolean inPackage()
Specified by:
inPackage in interface com.sun.tools.doclets.Taglet
Returns:
false

inType

public boolean inType()
Specified by:
inType in interface com.sun.tools.doclets.Taglet
Returns:
false

isInlineTag

public boolean isInlineTag()
Specified by:
isInlineTag in interface com.sun.tools.doclets.Taglet
Returns:
false

register

public static void register(java.util.Map tagletMap)
Register this Taglet.

Not implemented. This static method must be implemented by each class extending from here for registration to work.

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

registerHelper

public static void registerHelper(java.util.Map tagletMap,
                                  com.sun.tools.doclets.Taglet tag)
Helper method for register(java.util.Map). This code is common to all of our taglets, so there's no sense in reproducing it everywhere.


toString

public abstract 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 abstract 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.