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
,TypePool.Default.LazyTypeDescription.LazyAnnotationValue.ForMismatchedType
- Enclosing interface:
AnnotationValue<T,
S>
public abstract static class AnnotationValue.AbstractBase<U,V>
extends 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 Annotation>, AnnotationValue.ForConstant<U>, AnnotationValue.ForDescriptionArray<U, V>, AnnotationValue.ForEnumerationDescription<U extends Enum<U>>, AnnotationValue.ForIncompatibleType<U, V>, AnnotationValue.ForMismatchedType<U, V>, AnnotationValue.ForMissingType<U, V>, AnnotationValue.ForMissingValue<U, V>, AnnotationValue.ForTypeDescription<U extends Class<U>>, AnnotationValue.Loaded<U>, AnnotationValue.RenderingDispatcher, AnnotationValue.Sort, AnnotationValue.State -
Field Summary
Fields inherited from interface net.bytebuddy.description.annotation.AnnotationValue
UNDEFINED
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilter
(MethodDescription.InDefinedShape property) Filters this annotation value as a valid value of the provided property.<W> W
Resolves the unloaded value of this annotation.
-
Constructor Details
-
AbstractBase
public AbstractBase()
-
-
Method Details
-
resolve
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
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.
-