public final class Annotations
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static com.sun.javadoc.AnnotationDesc |
get(com.sun.javadoc.ProgramElementDoc doc,
java.lang.Class<?> annotationType,
com.sun.javadoc.RootDoc rootDoc) |
static com.sun.javadoc.AnnotationDesc |
get(com.sun.javadoc.ProgramElementDoc doc,
com.sun.javadoc.ClassDoc annotationType) |
static com.sun.javadoc.AnnotationDesc |
get(com.sun.javadoc.ProgramElementDoc doc,
java.lang.String annotationTypeSimpleName) |
static java.lang.Object |
getAnnotationElementValue(com.sun.javadoc.AnnotationDesc annotationDesc,
java.lang.String elementName)
Determines and returns the value of the named element.
|
static java.lang.Object |
getAnnotationValue(com.sun.javadoc.AnnotationValue value)
Determines and returns the value of an
AnnotationValue. |
static <T> T |
getElementValue(com.sun.javadoc.AnnotationDesc annotationDesc,
java.lang.String elementName,
java.lang.Class<T> clasS) |
@Nullable public static com.sun.javadoc.AnnotationDesc get(com.sun.javadoc.ProgramElementDoc doc, java.lang.String annotationTypeSimpleName)
null iff the doc is
not annotated with the annotationTypeSimpleName@Nullable public static com.sun.javadoc.AnnotationDesc get(com.sun.javadoc.ProgramElementDoc doc, com.sun.javadoc.ClassDoc annotationType)
null iff the doc is
not annotated with the annotationType@Nullable public static com.sun.javadoc.AnnotationDesc get(com.sun.javadoc.ProgramElementDoc doc, java.lang.Class<?> annotationType, com.sun.javadoc.RootDoc rootDoc) throws Longjump
null iff the doc is
not annotated with the annotationTypeLongjump - The annotationType is not on JAVADOC's source path or class path@Nullable public static <T> T getElementValue(com.sun.javadoc.AnnotationDesc annotationDesc, java.lang.String elementName, java.lang.Class<T> clasS)
null@Nullable public static java.lang.Object getAnnotationElementValue(com.sun.javadoc.AnnotationDesc annotationDesc, java.lang.String elementName)
This can be:
Type (representing a class literal)FieldDoc (representing an enum constant)AnnotationDesc (representing what??)@Nullable public static java.lang.Object getAnnotationValue(com.sun.javadoc.AnnotationValue value)
AnnotationValue.getAnnotationElementValue(AnnotationDesc, String)