Class AnnotationDescription.AnnotationInvocationHandler<T extends Annotation>

    • Constructor Detail

      • AnnotationInvocationHandler

        protected AnnotationInvocationHandler​(Class<T> annotationType,
                                              LinkedHashMap<Method,​AnnotationValue.Loaded<?>> values)
        Creates a new invocation handler.
        Parameters:
        annotationType - The loaded annotation type.
        values - A sorted list of values of this annotation.
    • Method Detail

      • of

        public static <S extends Annotation> S of​(ClassLoader classLoader,
                                                  Class<S> annotationType,
                                                  Map<String,​? extends AnnotationValue<?,​?>> values)
        Creates a proxy instance for the supplied annotation type and values.
        Type Parameters:
        S - The type of the handled annotation.
        Parameters:
        classLoader - The class loader that should be used for loading the annotation's values.
        annotationType - The annotation's type.
        values - The values that the annotation contains.
        Returns:
        A proxy for the annotation type and values.
      • toStringRepresentation

        protected String toStringRepresentation()
        Returns the string representation of the represented annotation.
        Returns:
        The string representation of the represented annotation.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object