Class AnnotationValue.AbstractBase<U,​V>

    • Constructor Detail

      • AbstractBase

        public AbstractBase()
    • 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 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

        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 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.