Class AnnotationDescription.Latent

    • Constructor Detail

      • Latent

        protected Latent​(TypeDescription annotationType,
                         java.util.Map<java.lang.String,​? extends AnnotationValue<?,​?>> annotationValues)
        Creates a new latent annotation description.
        Parameters:
        annotationType - The type of the annotation.
        annotationValues - The values of the annotation mapped by their property name.
    • Method Detail

      • getAnnotationType

        public TypeDescription getAnnotationType()
        Description copied from interface: AnnotationDescription
        Returns a description of the annotation type of this annotation.
        Returns:
        A description of the annotation type of this annotation.
      • prepare

        public <T extends java.lang.annotation.Annotation> AnnotationDescription.Latent.Loadable<T> prepare​(java.lang.Class<T> annotationType)
        Description copied from interface: AnnotationDescription
        Links this annotation description to a given annotation type such that it can be loaded. This does not cause the values of this annotation to be loaded.
        Type Parameters:
        T - The type of the annotation.
        Parameters:
        annotationType - The loaded annotation type of this annotation description.
        Returns:
        A loadable version of this annotation description.