Enum TypeDescription.SuperTypeLoading.ClassLoadingDelegate.Simple

    • Constructor Detail

      • Simple

        private Simple()
    • Method Detail

      • values

        public static TypeDescription.SuperTypeLoading.ClassLoadingDelegate.Simple[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TypeDescription.SuperTypeLoading.ClassLoadingDelegate.Simple c : TypeDescription.SuperTypeLoading.ClassLoadingDelegate.Simple.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TypeDescription.SuperTypeLoading.ClassLoadingDelegate.Simple valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • load

        public java.lang.Class<?> load​(java.lang.String name,
                                       java.lang.ClassLoader classLoader)
                                throws java.lang.ClassNotFoundException
        Loads a type.
        Specified by:
        load in interface TypeDescription.SuperTypeLoading.ClassLoadingDelegate
        Parameters:
        name - The type's name,
        classLoader - The class loader to load the type from which might be null to represent the bootstrap class loader.
        Returns:
        The loaded type.
        Throws:
        java.lang.ClassNotFoundException - If the type could not be found.