| Modifier and Type | Field and Description |
|---|---|
| private static final JavaLangAccess |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static <A extends Annotation> void | |
| private static <A extends Annotation> boolean | Returns: true if container class is found before containee class when iterating over annotations.keySet().Figures out if container class comes before containee class among the keys of the given map. |
| public static <A extends Annotation> A[] | Returns: an array of instances ofannoClass or an empty array if none were found.the declared annotations indexed by their types declaredAnnotations, Class<?> the class declaration on which to search for annotations decl, Class<A> the type of annotation to search for annoClass)Finds and returns all associated annotations matching the given class. |
| public static <A extends Annotation> A[] | Returns: an array of instances ofannoClass or an empty
array if none were foundthe annotations, Class<A> Map in which to search for annotationsthe type of annotation to search for annoClass)Finds and returns all annotations in |
| private static <A extends Annotation> A[] | Returns: an array of instances ofannoClass or an empty array if no
indirectly present annotations were foundannotations to search indexed by their types annotations, Class<A> the type of annotation to search for annoClass)Finds and returns all annotations matching the given |
| private static <A extends Annotation> A[] | |
| private static AnnotationFormatError |
| LANG_ACCESS | back to summary |
|---|---|
| private static final JavaLangAccess LANG_ACCESS | |
| AnnotationSupport | back to summary |
|---|---|
| public AnnotationSupport() | |
| checkTypes | back to summary |
|---|---|
| private static <A extends Annotation> void checkTypes(A[] annotations, Annotation container, Class<A> annoClass) | |
| containerBeforeContainee | back to summary |
|---|---|
| private static <A extends Annotation> boolean containerBeforeContainee(Map<Class<? extends Annotation>, Annotation> annotations, Class<A> annoClass) Figures out if container class comes before containee class among the keys of the given map.
| |
| getAssociatedAnnotations | back to summary |
|---|---|
| public static <A extends Annotation> A[] getAssociatedAnnotations(Map<Class<? extends Annotation>, Annotation> declaredAnnotations, Class<?> decl, Class<A> annoClass) Finds and returns all associated annotations matching the given class. The order of the elements in the array returned depends on the iteration order of the provided maps. Specifically, the directly present annotations come before the indirectly present annotations if and only if the directly present annotations come before the indirectly present annotations in the relevant map.
| |
| getDirectlyAndIndirectlyPresent | back to summary |
|---|---|
| public static <A extends Annotation> A[] getDirectlyAndIndirectlyPresent(Map<Class<? extends Annotation>, Annotation> annotations, Class<A> annoClass) Finds and returns all annotations in
| |
| getIndirectlyPresent | back to summary |
|---|---|
| private static <A extends Annotation> A[] getIndirectlyPresent(Map<Class<? extends Annotation>, Annotation> annotations, Class<A> annoClass) Finds and returns all annotations matching the given
| |
| getValueArray | back to summary |
|---|---|
| private static <A extends Annotation> A[] getValueArray(Annotation container) | |
| invalidContainerException | back to summary |
|---|---|
| private static AnnotationFormatError invalidContainerException(Annotation anno, Throwable cause) | |