Class AnnotationRegistry
- java.lang.Object
-
- com.univocity.parsers.annotations.helpers.AnnotationRegistry
-
public class AnnotationRegistry extends java.lang.Object
An internal registry of annotated elements and their properties that have been set via aCopy
annotation.
-
-
Constructor Summary
Constructors Constructor Description AnnotationRegistry()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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 aCopy
annotationstatic void
reset()
-
-
-
Method Detail
-
getValue
public static final <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 aCopy
annotation- Type Parameters:
T
- the expected value type to be returned by this method.- Parameters:
annotatedElement
- a method or field that has an annotation whose properties might have been changed by aCopy
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 aCopy
- Returns:
- the value associated with the given annotation property.
-
reset
public static final void reset()
-
-