public enum CodletComSunJavadocTagProcessor extends Enum<CodletComSunJavadocTagProcessor>
The interface between Java com.sun.javadoc.* and com.github.aliteralmind.codelet.*. The only dependencies on com.sun.javadoc.* are in this com.github.aliteralmind.codelet.taglet package. This is done in the interest of minimizing the dependency on com.sun.javadoc, which is not as cross-platform as Java itself.
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| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
static String |
get(Tag tag)
Passes all taglet information to the codelet processor (without any references to
com.sun.javadoc) and returns the text that replaces the taglet in the JavaDoc. |
static CodletComSunJavadocTagProcessor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CodletComSunJavadocTagProcessor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CodletComSunJavadocTagProcessor INSTANCE
public static CodletComSunJavadocTagProcessor[] values()
for (CodletComSunJavadocTagProcessor c : CodletComSunJavadocTagProcessor.values()) System.out.println(c);
public static CodletComSunJavadocTagProcessor valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static final String get(Tag tag)
Passes all taglet information to the codelet processor (without any references to com.sun.javadoc) and returns the text that replaces the taglet in the JavaDoc.
tag - May not be null.(new TagletProcessor(instance)).get()
where
instance is a
newCodeletInstance(tag.name().substring(1),ComSunJavaDocUtil.getEnclosingPackageName(tag), ComSunJavaDocUtil.getEnclosingSimpleName(tag,IncludePostClassName.NO), pos.file(), pos.line(), tag.text(), ComSunJavaDocUtil.getRelativeUrlToDocRoot(tag))
holder is tag.holder(), andpos is holder.position()name().substring(1)} is to eliminate the trailing at-sign ('@'). Don't understand what that's part of it.RuntimeException - If the taglet is not successfully processed, for any reason. Get the causing exception with getCause().Copyright 2014, Jeff Epstein, All Rights Reserved. See top of source code files for copyright notice.
https://github.com/aliteralmind/codelet