Interface AnnotationValue<T,​S>

    • Field Detail

      • UNDEFINED

        static final AnnotationValue<?,​?> UNDEFINED
        An undefined annotation value.
    • Method Detail

      • resolve

        T resolve()
        Resolves the unloaded value of this annotation.
        Returns:
        The unloaded value of this annotation.
      • resolve

        <W> W resolve​(java.lang.Class<? extends W> type)
        Resolves the unloaded value of this annotation.
        Type Parameters:
        W - The annotation value's unloaded type.
        Parameters:
        type - The annotation value's unloaded type.
        Returns:
        The unloaded value of this annotation.
      • load

        AnnotationValue.Loaded<S> load​(java.lang.ClassLoader classLoader)
                                throws java.lang.ClassNotFoundException
        Returns the loaded value of this annotation.
        Parameters:
        classLoader - The class loader for loading this value.
        Returns:
        The loaded value of this annotation.
        Throws:
        java.lang.ClassNotFoundException - If a type that represents a loaded value cannot be found.
      • loadSilent

        AnnotationValue.Loaded<S> loadSilent​(java.lang.ClassLoader classLoader)
        Returns the loaded value of this annotation without throwing a checked exception.
        Parameters:
        classLoader - The class loader for loading this value.
        Returns:
        The loaded value of this annotation.