Package net.bytebuddy.description.type
Enum 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:
java.io.Serializable
,java.lang.Comparable<TypeDescription.SuperTypeLoading.ClassLoadingDelegate.Simple>
,TypeDescription.SuperTypeLoading.ClassLoadingDelegate
- Enclosing interface:
- TypeDescription.SuperTypeLoading.ClassLoadingDelegate
public static enum TypeDescription.SuperTypeLoading.ClassLoadingDelegate.Simple extends java.lang.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 interface net.bytebuddy.description.type.TypeDescription.SuperTypeLoading.ClassLoadingDelegate
TypeDescription.SuperTypeLoading.ClassLoadingDelegate.Simple
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
Simple()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>
load(java.lang.String name, java.lang.ClassLoader classLoader)
Loads a type.static TypeDescription.SuperTypeLoading.ClassLoadingDelegate.Simple
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TypeDescription.SuperTypeLoading.ClassLoadingDelegate.Simple[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final TypeDescription.SuperTypeLoading.ClassLoadingDelegate.Simple INSTANCE
The singleton instance.
-
-
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 namejava.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 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:
java.lang.ClassNotFoundException
- If the type could not be found.
-
-