public class CodeletTaglet extends Object implements com.sun.tools.doclets.Taglet
Inline JavaDoc taglet for displaying the source code of a class (usually example code). This tag can be used in any kind of Doc.
The only custom code in this class is the NAME field and toString function.
Jamie Ho's UnderlineTaglet was the template used to create this file.
aliteralmind __DASH__ github __AT__ yahoo __DOT__ com), dual-licensed under the LGPL (version 3.0 or later) or the ASL (version 2.0). See source code for details. http://codelet.aliteralmind.com, https://github.com/aliteralmind/codelet.| Modifier and Type | Field and Description |
|---|---|
static String |
NAME
The name of this taglet, which appears immediately after the
{@--Equal to
|
| Constructor and Description |
|---|
CodeletTaglet() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Return the name of this custom tag.
|
boolean |
inConstructor() |
boolean |
inField() |
boolean |
inMethod() |
boolean |
inOverview() |
boolean |
inPackage() |
boolean |
inType() |
boolean |
isInlineTag()
Will return true since this is an inline tag.
|
static void |
register(Map taglet_map)
Register this Taglet.
|
String |
toString(Tag tag)
Given the taglet input of a source-code file (as a fully-qualified class name), this returns the source code for that class, its lines potentially filtered and altered.
|
String |
toString(Tag[] tags)
This method should not be called since arrays of inline tags do not
exist.
|
public static final String NAME
The name of this taglet, which appears immediately after the {@--Equal to
CodeletType.SOURCE_CODE.getName()
public CodeletTaglet()
public String getName()
getName in interface com.sun.tools.doclets.Tagletpublic boolean inField()
inField in interface com.sun.tools.doclets.Tagletpublic boolean inConstructor()
inConstructor in interface com.sun.tools.doclets.Tagletpublic boolean inMethod()
inMethod in interface com.sun.tools.doclets.Tagletpublic boolean inOverview()
inOverview in interface com.sun.tools.doclets.Tagletpublic boolean inPackage()
inPackage in interface com.sun.tools.doclets.Tagletpublic boolean inType()
inType in interface com.sun.tools.doclets.Tagletpublic boolean isInlineTag()
isInlineTag in interface com.sun.tools.doclets.Tagletpublic static void register(Map taglet_map)
Register this Taglet.
Equal to
ComSunJavaDocUtil.registerNewTagletInstance(new CodeletTaglet(), taglet_map)
public String toString(Tag tag)
Given the taglet input of a source-code file (as a fully-qualified class name), this returns the source code for that class, its lines potentially filtered and altered.
toString in interface com.sun.tools.doclets.Taglettag - The Tag representation of this custom tag.CodletComSunJavadocTagProcessor.get(tag)public String toString(Tag[] tags)
toString(Tag) should be used to convert this
inline tag to a string.toString in interface com.sun.tools.doclets.Taglettags - the array of Tags representing of this custom tag.Copyright 2014, Jeff Epstein, All Rights Reserved. See top of source code files for copyright notice.
https://github.com/aliteralmind/codelet