Class AnnotationDescription.AbstractBase.ForPrepared<S extends java.lang.annotation.Annotation>
- java.lang.Object
-
- net.bytebuddy.description.annotation.AnnotationDescription.AbstractBase
-
- net.bytebuddy.description.annotation.AnnotationDescription.AbstractBase.ForPrepared<S>
-
- Type Parameters:
S
- The annotation type this instance was prepared for.
- All Implemented Interfaces:
AnnotationDescription
,AnnotationDescription.Loadable<S>
- Direct Known Subclasses:
AnnotationDescription.ForLoadedAnnotation
,AnnotationDescription.Latent.Loadable
- Enclosing class:
- AnnotationDescription.AbstractBase
public abstract static class AnnotationDescription.AbstractBase.ForPrepared<S extends java.lang.annotation.Annotation> extends AnnotationDescription.AbstractBase implements AnnotationDescription.Loadable<S>
An abstract implementation of a loadable annotation description.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.bytebuddy.description.annotation.AnnotationDescription.AbstractBase
AnnotationDescription.AbstractBase.ForPrepared<S extends java.lang.annotation.Annotation>
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.annotation.AnnotationDescription
AnnotationDescription.AbstractBase, AnnotationDescription.AnnotationInvocationHandler<T extends java.lang.annotation.Annotation>, AnnotationDescription.Builder, AnnotationDescription.ForLoadedAnnotation<S extends java.lang.annotation.Annotation>, AnnotationDescription.Latent, AnnotationDescription.Loadable<S extends java.lang.annotation.Annotation>
-
-
Field Summary
-
Fields inherited from interface net.bytebuddy.description.annotation.AnnotationDescription
UNDEFINED
-
-
Constructor Summary
Constructors Constructor Description ForPrepared()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description S
loadSilent()
Loads this annotation description.-
Methods inherited from class net.bytebuddy.description.annotation.AnnotationDescription.AbstractBase
equals, getElementTypes, getRetention, hashCode, isDocumented, isInherited, 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, isDocumented, isInherited, prepare
-
Methods inherited from interface net.bytebuddy.description.annotation.AnnotationDescription.Loadable
load
-
-
-
-
Method Detail
-
loadSilent
public S loadSilent()
Description copied from interface:AnnotationDescription.Loadable
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. AnyClassNotFoundException
is wrapped in anIllegalStateException
.- Specified by:
loadSilent
in interfaceAnnotationDescription.Loadable<S extends java.lang.annotation.Annotation>
- Returns:
- A loaded version of this annotation description.
-
-