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:
AnnotationValue.ForAnnotationDescription.Loaded,AnnotationValue.ForConstant.Loaded,AnnotationValue.ForDescriptionArray.Loaded,AnnotationValue.ForEnumerationDescription.Loaded,AnnotationValue.ForEnumerationDescription.Loaded.WithIncompatibleRuntimeType,AnnotationValue.ForMissingValue.Loaded,AnnotationValue.ForTypeDescription.Loaded,AnnotationValue.Loaded.AbstractBase.ForUnresolvedProperty
- 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 Modifier and Type Class Description static classAnnotationValue.Loaded.AbstractBase.ForUnresolvedProperty<Z>A base implementation for an unresolved property.-
Nested classes/interfaces inherited from interface net.bytebuddy.description.annotation.AnnotationValue.Loaded
AnnotationValue.Loaded.AbstractBase<W>
-
-
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)
Resolves 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.
-
-