Class AnnotationValue.ForMissingType.Loaded<U>

Type Parameters:
U - The represented type.
All Implemented Interfaces:
AnnotationValue.Loaded<U>
Enclosing class:
AnnotationValue.ForMissingType<U,V>

public static class AnnotationValue.ForMissingType.Loaded<U> extends AnnotationValue.Loaded.AbstractBase.ForUnresolvedProperty<U>
Represents a missing type during an annotation's resolution.
  • Field Details

    • typeName

      private final String typeName
      The type's binary name.
    • exception

      private final ClassNotFoundException exception
      The exception describing the missing type.
  • Constructor Details

    • Loaded

      public Loaded(String typeName, ClassNotFoundException exception)
      The type's binary name.
      Parameters:
      typeName - The type's binary name.
      exception - The exception describing the missing type.
  • Method Details

    • resolve

      public U 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