public final class Annotations extends Object
| Modifier and Type | Method and Description |
|---|---|
static com.sun.javadoc.AnnotationDesc |
get(com.sun.javadoc.ProgramElementDoc doc,
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,
String annotationTypeSimpleName) |
static Object |
getAnnotationElementValue(com.sun.javadoc.AnnotationDesc annotationDesc,
String elementName)
Determines and returns the value of the named element.
|
static Object |
getAnnotationValue(com.sun.javadoc.AnnotationValue value)
Determines and returns the value of an
AnnotationValue. |
static <T> T |
getElementValue(com.sun.javadoc.AnnotationDesc annotationDesc,
String elementName,
Class<T> clasS) |
@Nullable public static com.sun.javadoc.AnnotationDesc get(com.sun.javadoc.ProgramElementDoc doc, 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, 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, String elementName, Class<T> clasS)
null@Nullable public static Object getAnnotationElementValue(com.sun.javadoc.AnnotationDesc annotationDesc, String elementName)
This can be:
Type (representing a class literal)FieldDoc (representing an enum constant)AnnotationDesc (representing what??)@Nullable public static Object getAnnotationValue(com.sun.javadoc.AnnotationValue value)
AnnotationValue.getAnnotationElementValue(AnnotationDesc, String)Copyright © 2017 Arno Unkrig. All rights reserved.