Package net.bytebuddy.description.type
Enum Class TypeDescription.SuperTypeLoading.ClassLoadingDelegate.Simple
java.lang.Object
java.lang.Enum<TypeDescription.SuperTypeLoading.ClassLoadingDelegate.Simple>
net.bytebuddy.description.type.TypeDescription.SuperTypeLoading.ClassLoadingDelegate.Simple
- All Implemented Interfaces:
Serializable
,Comparable<TypeDescription.SuperTypeLoading.ClassLoadingDelegate.Simple>
,Constable
,TypeDescription.SuperTypeLoading.ClassLoadingDelegate
- Enclosing interface:
TypeDescription.SuperTypeLoading.ClassLoadingDelegate
public static enum TypeDescription.SuperTypeLoading.ClassLoadingDelegate.Simple
extends Enum<TypeDescription.SuperTypeLoading.ClassLoadingDelegate.Simple>
implements TypeDescription.SuperTypeLoading.ClassLoadingDelegate
A simple class loading delegate that simply loads a type.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.bytebuddy.description.type.TypeDescription.SuperTypeLoading.ClassLoadingDelegate
TypeDescription.SuperTypeLoading.ClassLoadingDelegate.Simple
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass
<?> load
(String name, ClassLoader classLoader) Loads a type.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
Simple
private Simple()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
load
Loads a type.- Specified by:
load
in interfaceTypeDescription.SuperTypeLoading.ClassLoadingDelegate
- Parameters:
name
- The type's name,classLoader
- The class loader to load the type from which might benull
to represent the bootstrap class loader.- Returns:
- The loaded type.
- Throws:
ClassNotFoundException
- If the type could not be found.
-