|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jmythapi.javadoc.utils.JavadocUtils
public class JavadocUtils
Javadoc related utils.
| Field Summary | |
|---|---|
static String |
GIT_COMMIT_URL
The link prefix to a GIT commit. |
static String |
MYTHTV_WIKI_URL
The link prefix to the release notes of a MythTV version. |
| Constructor Summary | |
|---|---|
JavadocUtils()
|
|
| Method Summary | |
|---|---|
static com.sun.javadoc.AnnotationDesc |
findProtocolVersionAnnotation(com.sun.javadoc.Doc doc)
Returns the documentation of the MythProtoVersionAnnotation a method
or enumeration is annotated with. |
static com.sun.javadoc.AnnotationDesc |
findProtocolVersionAnnotation(com.sun.javadoc.Tag tag)
Returns the documentation of the MythProtoVersionAnnotation a method
or enumeration is annotated with. |
static com.sun.javadoc.ClassDoc |
getEnumDataType(com.sun.javadoc.FieldDoc enumDoc)
|
static String |
getLinkPrefix(com.sun.javadoc.Tag tag,
String className)
Gets the relative link to the given class. |
static com.sun.javadoc.PackageDoc |
getPackageDoc(com.sun.javadoc.Tag tag)
Gets the doc object of the containing package of the given tag. |
static String |
getProtocolVersionInfoTitle(int version)
Gets a nice info-text that can be used as titles in links to a specific protocol version. |
static String |
getProtocolVersionInfoTitle(ProtocolVersion version)
Gets a nice info-text that can be used as titles in links to a specific protocol version. |
static String |
getProtocolVersionLink(com.sun.javadoc.Tag tag,
int protoVersion)
Gets the relative link to a specific protocol-version. |
static String |
getProtocolVersionLink(com.sun.javadoc.Tag tag,
ProtocolVersion version)
Gets the relative link to a specific ProtocolVersion. |
static String |
getProtocolVersionLinkPrefix(com.sun.javadoc.Tag tag)
Gets the relative link to the ProtocolVersion enumeration. |
static String |
getProtocolVersionMetadata(ProtocolVersion version,
String metaDataKey)
Gets the metadata info about the given protocol version. |
static ProtocolVersionRange |
getProtocolVersionRange(com.sun.javadoc.AnnotationDesc annotation)
Gets the protocol range of a javadoc annotation description. |
static ProtocolVersionRange |
getProtocolVersionRange(com.sun.javadoc.Doc doc,
boolean returnDefaultIfNull)
Gets the protocol range of the given javadoc element. |
static ProtocolVersionRange |
getProtocolVersionRange(com.sun.javadoc.Tag tag,
boolean returnDefaultIfNull)
Gets the protocol range a method or enumeration is annotated with. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String GIT_COMMIT_URL
public static final String MYTHTV_WIKI_URL
| Constructor Detail |
|---|
public JavadocUtils()
| Method Detail |
|---|
public static String getProtocolVersionInfoTitle(int version)
E.g. Protocol Version 18 (2005-07-19)
version - the protocol version
public static String getProtocolVersionInfoTitle(ProtocolVersion version)
E.g. Protocol Version 18 (2005-07-19)
version - the protocol version
public static String getProtocolVersionMetadata(ProtocolVersion version,
String metaDataKey)
version - the protocol versionmetaDataKey - the name of the requested metadata
null
public static String getProtocolVersionLink(com.sun.javadoc.Tag tag,
int protoVersion)
tag - the current tag. This is required to determine the path to the protocol version.protoVersion - the given protocol version
public static String getProtocolVersionLink(com.sun.javadoc.Tag tag,
ProtocolVersion version)
ProtocolVersion.
tag - the current tag. This is required to determine the path to the protocol version.version - the given protocol version
../../../org/jmythapi/protocol/ProtocolVersion.html#PROTO_VERSION_09public static String getProtocolVersionLinkPrefix(com.sun.javadoc.Tag tag)
ProtocolVersion enumeration.
This is used to link to a given protocol version.
tag - the current tag. This is required to determine the path to the protocol version.
public static String getLinkPrefix(com.sun.javadoc.Tag tag,
String className)
This is used to link to a class or constant.
tag - the current tag. This is required to determine the path to the class.className - the class to link to
public static com.sun.javadoc.PackageDoc getPackageDoc(com.sun.javadoc.Tag tag)
tag - the tag
public static ProtocolVersionRange getProtocolVersionRange(com.sun.javadoc.Tag tag,
boolean returnDefaultIfNull)
If no protocol-version-range annotation is found, null is returned.
tag - the current tagreturnDefaultIfNull - TODO
null.
public static ProtocolVersionRange getProtocolVersionRange(com.sun.javadoc.Doc doc,
boolean returnDefaultIfNull)
If no protocol-version-range annotation is found, null is returned.
doc - the javadoc documentationreturnDefaultIfNull - if true and no version-range is found, ProtocolVersionRange.DEFAULT_RANGE is returned.
null.public static ProtocolVersionRange getProtocolVersionRange(com.sun.javadoc.AnnotationDesc annotation)
If no protocol-version-range annotation is found, null is returned.
annotation - the javadoc of the annotation
null.public static com.sun.javadoc.AnnotationDesc findProtocolVersionAnnotation(com.sun.javadoc.Tag tag)
MythProtoVersionAnnotation a method
or enumeration is annotated with.
tag - the current tag
nullpublic static com.sun.javadoc.AnnotationDesc findProtocolVersionAnnotation(com.sun.javadoc.Doc doc)
MythProtoVersionAnnotation a method
or enumeration is annotated with.
doc - the javadoc of the element
nullpublic static com.sun.javadoc.ClassDoc getEnumDataType(com.sun.javadoc.FieldDoc enumDoc)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||