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.
  • Constructor Details

    • AbstractBase

      public AbstractBase()
  • Method Details

    • resolve

      public <W> W resolve(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 interface AnnotationValue<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 interface AnnotationValue<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.