Class AnnotationValue.ForMismatchedType.Loaded<W>

Type Parameters:
W - The type of the annotation's expected value.
All Implemented Interfaces:
AnnotationValue.Loaded<W>
Enclosing class:
AnnotationValue.ForMismatchedType<U,V>

public static class AnnotationValue.ForMismatchedType.Loaded<W> extends AnnotationValue.Loaded.AbstractBase.ForUnresolvedProperty<W>
Describes an annotation value for a property that is not assignable to it.
  • Field Details

    • property

      private final Method property
      The annotation property that is not well-defined.
    • value

      private final String value
      A value description of the incompatible property or null.
  • Constructor Details

    • Loaded

      public Loaded(Method property, String value)
      Creates a new loaded version of a property with an incompatible type.
      Parameters:
      property - The annotation property that is not well-defined.
      value - A value description of the incompatible property or null.
  • Method Details

    • resolve

      public W resolve()
      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.
      Returns:
      The actual annotation value represented by this instance.
    • toString

      public String toString()
      Overrides:
      toString in class Object