Class AnnotationValue.Loaded.AbstractBase<W>
- java.lang.Object
-
- net.bytebuddy.description.annotation.AnnotationValue.Loaded.AbstractBase<W>
-
- Type Parameters:
W- The represented loaded type.
- All Implemented Interfaces:
AnnotationValue.Loaded<W>
- Direct Known Subclasses:
AnnotationDescription.AnnotationInvocationHandler.MissingValue,AnnotationValue.ForAnnotationDescription.IncompatibleRuntimeType,AnnotationValue.ForAnnotationDescription.Loaded,AnnotationValue.ForConstant.Loaded,AnnotationValue.ForDescriptionArray.Loaded,AnnotationValue.ForEnumerationDescription.IncompatibleRuntimeType,AnnotationValue.ForEnumerationDescription.Loaded,AnnotationValue.ForEnumerationDescription.UnknownRuntimeEnumeration,AnnotationValue.ForTypeDescription.Loaded,TypePool.AbstractBase.RawDescriptionArray.Loaded,TypePool.AbstractBase.RawTypeValue.Loaded
- Enclosing interface:
- AnnotationValue.Loaded<U>
public abstract static class AnnotationValue.Loaded.AbstractBase<W> extends java.lang.Object implements AnnotationValue.Loaded<W>
An abstract base implementation of a loaded annotation value.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.annotation.AnnotationValue.Loaded
AnnotationValue.Loaded.AbstractBase<W>, AnnotationValue.Loaded.State
-
-
Constructor Summary
Constructors Constructor Description AbstractBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <X> Xresolve(java.lang.Class<? extends X> type)Resolves the value to the actual value of an 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.Loaded
getState, represents, resolve
-
-
-
-
Method Detail
-
resolve
public <X> X resolve(java.lang.Class<? extends X> type)
Description copied from interface:AnnotationValue.LoadedResolves the value to the actual value of an annotation. Calling this method might throw a runtime exception if this value is either not defined or not resolved.- Specified by:
resolvein interfaceAnnotationValue.Loaded<W>- Type Parameters:
X- The value's loaded type.- Parameters:
type- The value's loaded type.- Returns:
- The actual annotation value represented by this instance.
-
-