Class AnnotationValue.ForEnumerationDescription.WithUnknownConstant.Loaded

    • Field Detail

      • enumType

        private final java.lang.Class<? extends java.lang.Enum<?>> enumType
        The loaded enumeration type.
      • value

        private final java.lang.String value
        The value for which no enumeration constant exists at runtime.
    • Constructor Detail

      • Loaded

        public Loaded​(java.lang.Class<? extends java.lang.Enum<?>> enumType,
                      java.lang.String value)
        Creates a new representation for an unknown enumeration constant of an annotation.
        Parameters:
        enumType - The loaded enumeration type.
        value - The value for which no enumeration constant exists at runtime.
    • Method Detail

      • resolve

        public java.lang.Enum<?> 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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object