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

Type Parameters:
S - The annotation type.
All Implemented Interfaces:
AnnotationDescription, AnnotationDescription.Loadable<S>
Enclosing class:
TypePool.Default.LazyTypeDescription.LazyAnnotationDescription

private static class TypePool.Default.LazyTypeDescription.LazyAnnotationDescription.Loadable<S extends Annotation> extends TypePool.Default.LazyTypeDescription.LazyAnnotationDescription implements AnnotationDescription.Loadable<S>
A loadable version of a lazy annotation description.
  • Field Details

    • annotationType

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

    • Loadable

      private Loadable(TypePool typePool, Class<S> annotationType, Map<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 Details

    • 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 Annotation>
      Returns:
      A loaded version of this annotation description.