public class ComSunJavaDocUtil extends Object
Generically-useful utilities related to com.sun.javadoc.
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| Constructor and Description |
|---|
ComSunJavaDocUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getEnclosingPackageName(Tag tag)
Get the package of the tag-containing JavaDoc page.
|
static String |
getEnclosingSimpleName(Tag tag,
IncludePostClassName include_postClassName)
Get the tag-containing JavaDoc page's post-package name.
|
static PackageDoc |
getPackageDoc(Tag tag)
Get the object containing the "package" of the tag-containing JavaDoc page.
|
static String |
getRelativeUrlToDocRoot(Tag tag)
Get the relative url whose value is equivalent to
{@docRoot}. |
static void |
registerNewTagletInstance(com.sun.tools.doclets.Taglet taglet,
Map map)
Register a Taglet as required by JavaDoc.
|
public ComSunJavaDocUtil()
public static void registerNewTagletInstance(com.sun.tools.doclets.Taglet taglet, Map map)
Register a Taglet as required by JavaDoc.
Steps
taglet - The taglet to register. May not be null.map - The map to register this tag to. May not be null.public static final String getRelativeUrlToDocRoot(Tag tag)
Get the relative url whose value is equivalent to {@docRoot}.
JavaDocUtil.getRelativeUrlToDocRoot(getEnclosingPackageName(tag))public static final String getEnclosingPackageName(Tag tag)
Get the package of the tag-containing JavaDoc page.
getPackageDoc(tag) isnull: ""null: Its name.public static final String getEnclosingSimpleName(Tag tag, IncludePostClassName include_postClassName)
Get the tag-containing JavaDoc page's post-package name.
tag - May not be null.include_postClassName - If the taglet is in the class JavaDoc-block, The classes generics, if any, are included in its simple name. If the taglet is in a function's JavaDoc-block, its name and parameters are included. If this parameter is YES, the generics or function name, if any, are included in the returned value. If NO, they are excluded. This parameter may not be null."OVERVIEW_SUMMARY""PACKAGE_SUMMARY"public static final PackageDoc getPackageDoc(Tag tag)
Get the object containing the "package" of the tag-containing JavaDoc page.
This function was written by Stack Overflow user Chad Retz.
-ProgramElementDoc: Its containing package.PackageDoc: tag.nullhttps://chadretz.wordpress.com/2010/12/19/mathml-inside-javadoc-using-mathjax-and-a-custom-taglet/Copyright 2014, Jeff Epstein, All Rights Reserved. See top of source code files for copyright notice.
https://github.com/aliteralmind/codelet