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.ForEnumerationDescription.WithUnknownConstant
,AnnotationValue.ForIncompatibleType
,AnnotationValue.ForMismatchedType
,AnnotationValue.ForMissingType
,AnnotationValue.ForMissingValue
,AnnotationValue.ForTypeDescription
,TypePool.Default.LazyTypeDescription.LazyAnnotationValue
- 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.ForIncompatibleType<U,V>, AnnotationValue.ForMismatchedType<U,V>, AnnotationValue.ForMissingType<U,V>, AnnotationValue.ForMissingValue<U,V>, AnnotationValue.ForTypeDescription<U extends java.lang.Class<U>>, AnnotationValue.Loaded<U>, AnnotationValue.RenderingDispatcher, AnnotationValue.State
-
-
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<U,V>
filter(MethodDescription.InDefinedShape property)
Filters this annotation value as a valid value of the provided property.<W> W
resolve(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
filter, getState, load, resolve
-
-
-
-
Method Detail
-
resolve
public <W> W resolve(java.lang.Class<? extends W> type)
Resolves the unloaded value of this annotation. The return value of this method is not defined if this annotation value is invalid.- Specified by:
resolve
in 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.
-
filter
public AnnotationValue<U,V> filter(MethodDescription.InDefinedShape property)
Description copied from interface:AnnotationValue
Filters this annotation value as a valid value of the provided property.- Specified by:
filter
in interfaceAnnotationValue<U,V>
- Parameters:
property
- The property to filter against.- Returns:
- This annotation value or a new annotation value that describes why this value is not a valid value for the supplied property.
-
-