public static enum InternalFlags.CustomClassLoadingOption extends java.lang.Enum<InternalFlags.CustomClassLoadingOption>
Enum Constant and Description |
---|
ANONYMOUS
Define fast/enhanced types anonymously as hidden nest-mates, never creates class loaders.
|
BRIDGE
Attempt to define fast/enhanced types in the same class loader as their original type.
|
CHILD
Define fast/enhanced types in a child class loader whose parent is the original class loader.
|
OFF
Define fast/enhanced types in the same class loader as their original type, never creates
class loaders.
|
Modifier and Type | Method and Description |
---|---|
static InternalFlags.CustomClassLoadingOption |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static InternalFlags.CustomClassLoadingOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InternalFlags.CustomClassLoadingOption OFF
Unsafe
to gain access to existing class loaders.public static final InternalFlags.CustomClassLoadingOption ANONYMOUS
Note: with this option you cannot look up fast/enhanced types by name or mock/spy them.
public static final InternalFlags.CustomClassLoadingOption BRIDGE
public static final InternalFlags.CustomClassLoadingOption CHILD
Note: with this option you cannot intercept package-private methods.
public static InternalFlags.CustomClassLoadingOption[] values()
for (InternalFlags.CustomClassLoadingOption c : InternalFlags.CustomClassLoadingOption.values()) System.out.println(c);
public static InternalFlags.CustomClassLoadingOption valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null