Class AnnotationDescription.Latent

    • Field Detail

      • annotationType

        private final TypeDescription annotationType
        The type of the annotation.
      • annotationValues

        private final java.util.Map<java.lang.String,​? extends AnnotationValue<?,​?>> annotationValues
        The values of the annotation mapped by their property name.
    • 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

      • getValue

        public AnnotationValue<?,​?> getValue​(MethodDescription.InDefinedShape property)
        Returns the value of this annotation.
        Parameters:
        property - The property being accessed.
        Returns:
        The value for the supplied property.
      • getAnnotationType

        public TypeDescription getAnnotationType()
        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)
        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.