public class AnnotationRegistry
extends java.lang.Object
Copy annotation.| Modifier and Type | Class and Description |
|---|---|
private static class |
AnnotationRegistry.AnnotationAttributes |
private static class |
AnnotationRegistry.FieldAnnotations |
| Modifier and Type | Field and Description |
|---|---|
private static java.util.Map<java.lang.reflect.AnnotatedElement,AnnotationRegistry.FieldAnnotations> |
modifiedAnnotations |
| Constructor and Description |
|---|
AnnotationRegistry() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static java.lang.Object |
getValue(java.lang.reflect.AnnotatedElement annotatedElement,
java.lang.annotation.Annotation annotation,
java.lang.String attribute)
Returns the a value to a given annotation attribute that might have been modified by a
Copy annotation |
static <T> T |
getValue(java.lang.reflect.AnnotatedElement annotatedElement,
java.lang.annotation.Annotation annotation,
java.lang.String attribute,
T valueIfNull)
Returns the a value to a given annotation attribute that might have been modified by a
Copy annotation |
static void |
reset() |
(package private) static void |
setValue(java.lang.reflect.AnnotatedElement annotatedElement,
java.lang.annotation.Annotation annotation,
java.lang.String attribute,
java.lang.Object newValue)
Associates a value to a given annotation attribute
|
private static final java.util.Map<java.lang.reflect.AnnotatedElement,AnnotationRegistry.FieldAnnotations> modifiedAnnotations
static final void setValue(java.lang.reflect.AnnotatedElement annotatedElement,
java.lang.annotation.Annotation annotation,
java.lang.String attribute,
java.lang.Object newValue)
annotatedElement - a method or field that has an annotation whose properties are changed by a Copy annotationannotation - the altered annotation of the given annotatedElementattribute - the attribute of the altered annotationnewValue - the value of the given attribute of the altered annotation.public static final <T> T getValue(java.lang.reflect.AnnotatedElement annotatedElement,
java.lang.annotation.Annotation annotation,
java.lang.String attribute,
T valueIfNull)
Copy annotationT - the expected value type to be returned by this method.annotatedElement - a method or field that has an annotation whose properties might have been changed by a Copy annotationannotation - the possibly altered annotation of the given annotatedElementattribute - the attribute of the possibly altered annotationvalueIfNull - the value to return from the unmodified annotation, if it has not been changed by a Copystatic final java.lang.Object getValue(java.lang.reflect.AnnotatedElement annotatedElement,
java.lang.annotation.Annotation annotation,
java.lang.String attribute)
Copy annotationannotatedElement - a method or field that has an annotation whose properties might have been changed by a Copy annotationannotation - the possibly altered annotation of the given annotatedElementattribute - the attribute of the possibly altered annotationnull if it has not been modified by a Copypublic static final void reset()