Class AnnotationDescription.AnnotationInvocationHandler.MissingValue

    • Field Detail

      • annotationType

        private final java.lang.Class<? extends java.lang.annotation.Annotation> annotationType
        The annotation type.
      • property

        private final java.lang.String property
        The name of the property without an annotation value.
    • Constructor Detail

      • MissingValue

        protected MissingValue​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType,
                               java.lang.String property)
        Creates a new representation for a missing annotation property.
        Parameters:
        annotationType - The annotation type.
        property - The name of the property without an annotation value.
    • Method Detail

      • of

        protected static AnnotationValue<?,​?> of​(java.lang.reflect.Method method)
        Creates a missing value for the supplied annotation property.
        Parameters:
        method - A method representing an annotation property.
        Returns:
        An annotation value for a missing property.
      • represents

        public boolean represents​(java.lang.Object value)
        Verifies if this loaded value represents the supplied loaded value.
        Specified by:
        represents in interface AnnotationValue.Loaded<java.lang.Void>
        Parameters:
        value - A loaded annotation value.
        Returns:
        true if the supplied annotation value is represented by this annotation value.
      • load

        public AnnotationValue.Loaded<java.lang.Void> load​(java.lang.ClassLoader classLoader)
        Returns the loaded value of this annotation.
        Specified by:
        load in interface AnnotationValue<java.lang.Void,​java.lang.Void>
        Parameters:
        classLoader - The class loader for loading this value.
        Returns:
        The loaded value of this annotation.
      • loadSilent

        public AnnotationValue.Loaded<java.lang.Void> loadSilent​(java.lang.ClassLoader classLoader)
        Returns the loaded value of this annotation without throwing a checked exception.
        Specified by:
        loadSilent in interface AnnotationValue<java.lang.Void,​java.lang.Void>
        Parameters:
        classLoader - The class loader for loading this value.
        Returns:
        The loaded value of this annotation.
      • resolve

        public java.lang.Void resolve()
        Resolves the unloaded value of this annotation.
        Specified by:
        resolve in interface AnnotationValue<java.lang.Void,​java.lang.Void>
        Specified by:
        resolve in interface AnnotationValue.Loaded<java.lang.Void>
        Returns:
        The unloaded value of this annotation.