Class AnnotationEnumValue

    • Field Detail

      • scanResult

        protected transient ScanResult scanResult
    • Constructor Detail

      • AnnotationEnumValue

        public AnnotationEnumValue​(String className,
                                   String constValueName)
        Parameters:
        className - The enum class name.
        constValueName - The enum const value name.
    • Method Detail

      • getClassName

        public String getClassName()
        Return the name of the enum class.
      • getValueName

        public String getValueName()
        Return the name of the enum const value.
      • getName

        public String getName()
        Get the fully-qualified name of the enum const value, i.e. (getClassName() + getConstValueName()).
        Returns:
        The fully-qualified name of the enum const value, i.e. (getClassName() + getConstValueName()).
      • loadClassAndReturnEnumValue

        public Object loadClassAndReturnEnumValue()
                                           throws IllegalArgumentException
        Loads the enum class, if it has not yet been loaded, instantiates the enum constants, and returns the enum constant value represented by this AnnotationEnumValue.
        Returns:
        The enum constant value.
        Throws:
        IllegalArgumentException - if the class could not be loaded, or the enum constant is invalid.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object