Class TypePool.Default.LazyTypeDescription.LazyAnnotationDescription.Loadable<S extends java.lang.annotation.Annotation>

    • Field Detail

      • annotationType

        private final java.lang.Class<S extends java.lang.annotation.Annotation> annotationType
        The loaded annotation type.
    • Constructor Detail

      • Loadable

        private Loadable​(TypePool typePool,
                         java.lang.Class<S> annotationType,
                         java.util.Map<java.lang.String,​AnnotationValue<?,​?>> values)
        Creates a new loadable version of a lazy annotation.
        Parameters:
        typePool - The type pool to be used for looking up linked types.
        annotationType - The annotation's loaded type.
        values - A map of annotation value names to their value representations.
    • Method Detail

      • load

        public S load()
        Loads this annotation description. This causes all classes referenced by the annotation value to be loaded. Without specifying a class loader, the annotation's class loader which was used to prepare this instance is used.
        Specified by:
        load in interface AnnotationDescription.Loadable<S extends java.lang.annotation.Annotation>
        Returns:
        A loaded version of this annotation description.