public static enum TypeDescription.SuperTypeLoading.ClassLoadingDelegate.Simple extends Enum<TypeDescription.SuperTypeLoading.ClassLoadingDelegate.Simple> implements TypeDescription.SuperTypeLoading.ClassLoadingDelegate
TypeDescription.SuperTypeLoading.ClassLoadingDelegate.Simple
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
Class<?> |
load(String name,
ClassLoader classLoader)
Loads a type.
|
static TypeDescription.SuperTypeLoading.ClassLoadingDelegate.Simple |
valueOf(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.
|
public static final TypeDescription.SuperTypeLoading.ClassLoadingDelegate.Simple INSTANCE
public static TypeDescription.SuperTypeLoading.ClassLoadingDelegate.Simple[] values()
for (TypeDescription.SuperTypeLoading.ClassLoadingDelegate.Simple c : TypeDescription.SuperTypeLoading.ClassLoadingDelegate.Simple.values()) System.out.println(c);
public static TypeDescription.SuperTypeLoading.ClassLoadingDelegate.Simple valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Class<?> load(String name, ClassLoader classLoader) throws ClassNotFoundException
load
in interface TypeDescription.SuperTypeLoading.ClassLoadingDelegate
name
- The type's name,classLoader
- The class loader to load the type from which might be null
to represent the bootstrap class loader.ClassNotFoundException
- If the type could not be found.Copyright © 2014–2020. All rights reserved.