Class AnnotationValue.AbstractBase<U,V>
- java.lang.Object
-
- net.bytebuddy.description.annotation.AnnotationValue.AbstractBase<U,V>
-
- Type Parameters:
U- The represented unloaded type.V- The represented loaded type.
- All Implemented Interfaces:
AnnotationValue<U,V>
- Direct Known Subclasses:
AnnotationValue.ForAnnotationDescription,AnnotationValue.ForConstant,AnnotationValue.ForDescriptionArray,AnnotationValue.ForEnumerationDescription,AnnotationValue.ForTypeDescription,TypePool.AbstractBase.RawAnnotationValue,TypePool.AbstractBase.RawDescriptionArray,TypePool.AbstractBase.RawEnumerationValue,TypePool.AbstractBase.RawTypeValue
- Enclosing interface:
- AnnotationValue<T,S>
public abstract static class AnnotationValue.AbstractBase<U,V> extends java.lang.Object implements AnnotationValue<U,V>
An abstract base implementation of an unloaded annotation value.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.annotation.AnnotationValue
AnnotationValue.AbstractBase<U,V>, AnnotationValue.ForAnnotationDescription<U extends java.lang.annotation.Annotation>, AnnotationValue.ForConstant<U>, AnnotationValue.ForDescriptionArray<U,V>, AnnotationValue.ForEnumerationDescription<U extends java.lang.Enum<U>>, AnnotationValue.ForTypeDescription<U extends java.lang.Class<U>>, AnnotationValue.Loaded<U>, AnnotationValue.RenderingDispatcher
-
-
Field Summary
-
Fields inherited from interface net.bytebuddy.description.annotation.AnnotationValue
UNDEFINED
-
-
Constructor Summary
Constructors Constructor Description AbstractBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotationValue.Loaded<V>loadSilent(java.lang.ClassLoader classLoader)Returns the loaded value of this annotation without throwing a checked exception.<W> Wresolve(java.lang.Class<? extends W> type)Resolves the unloaded value of this annotation.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.bytebuddy.description.annotation.AnnotationValue
load, resolve
-
-
-
-
Method Detail
-
resolve
public <W> W resolve(java.lang.Class<? extends W> type)
Description copied from interface:AnnotationValueResolves the unloaded value of this annotation.- Specified by:
resolvein interfaceAnnotationValue<U,V>- Type Parameters:
W- The annotation value's unloaded type.- Parameters:
type- The annotation value's unloaded type.- Returns:
- The unloaded value of this annotation.
-
loadSilent
public AnnotationValue.Loaded<V> loadSilent(java.lang.ClassLoader classLoader)
Description copied from interface:AnnotationValueReturns the loaded value of this annotation without throwing a checked exception.- Specified by:
loadSilentin interfaceAnnotationValue<U,V>- Parameters:
classLoader- The class loader for loading this value.- Returns:
- The loaded value of this annotation.
-
-