Package net.bytebuddy.pool
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 net.bytebuddy.description.annotation.AnnotationDescription
AnnotationDescription.AbstractBase, AnnotationDescription.AnnotationInvocationHandler<T extends Annotation>, AnnotationDescription.Builder, AnnotationDescription.ForLoadedAnnotation<S extends Annotation>, AnnotationDescription.Latent, AnnotationDescription.Loadable<S extends Annotation>, AnnotationDescription.RenderingDispatcher
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe loaded annotation type.Fields inherited from class net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.LazyAnnotationDescription
typePool, values
Fields inherited from interface net.bytebuddy.description.annotation.AnnotationDescription
UNDEFINED
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.LazyAnnotationDescription
asList, asListOfNullable, getAnnotationType, getValue, prepare
Methods inherited from class net.bytebuddy.description.annotation.AnnotationDescription.AbstractBase
equals, getElementTypes, getRetention, getValue, hashCode, isDocumented, isInherited, isSupportedOn, isSupportedOn, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.bytebuddy.description.annotation.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:
load
in interfaceAnnotationDescription.Loadable<S extends Annotation>
- Returns:
- A loaded version of this annotation description.
-