Class TypePool.Default.LazyTypeDescription.LazyAnnotationDescription.Loadable<S extends Annotation>
java.lang.Object
net.bytebuddy.description.annotation.AnnotationDescription.AbstractBase
net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.LazyAnnotationDescription
net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.LazyAnnotationDescription.Loadable<S>
- 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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface AnnotationDescription
AnnotationDescription.AbstractBase, AnnotationDescription.AnnotationInvocationHandler<T>, AnnotationDescription.Builder, AnnotationDescription.ForLoadedAnnotation<S>, AnnotationDescription.Latent, AnnotationDescription.Loadable<S>, AnnotationDescription.RenderingDispatcher -
Field Summary
FieldsModifier and TypeFieldDescriptionThe loaded annotation type.Fields inherited from class TypePool.Default.LazyTypeDescription.LazyAnnotationDescription
typePool, valuesFields inherited from interface AnnotationDescription
UNDEFINED -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class TypePool.Default.LazyTypeDescription.LazyAnnotationDescription
asList, asListOfNullable, getAnnotationType, getValue, prepareMethods inherited from class AnnotationDescription.AbstractBase
equals, getElementTypes, getRetention, getValue, hashCode, isDocumented, isInherited, isSupportedOn, isSupportedOn, toStringMethods inherited from interface AnnotationDescription
getAnnotationType, getElementTypes, getRetention, getValue, getValue, isDocumented, isInherited, isSupportedOn, isSupportedOn, prepare
-
Field Details
-
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
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:
loadin interfaceAnnotationDescription.Loadable<S extends Annotation>- Returns:
- A loaded version of this annotation description.
-