public static enum TypeDescription.ForLoadedType.Dispatcher.ForLegacyVm extends Enum<TypeDescription.ForLoadedType.Dispatcher.ForLegacyVm> implements TypeDescription.ForLoadedType.Dispatcher
TypeDescription.ForLoadedType.Dispatcher.CreationAction, TypeDescription.ForLoadedType.Dispatcher.ForJava11CapableVm, TypeDescription.ForLoadedType.Dispatcher.ForLegacyVm
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
Class<?> |
getNestHost(Class<?> type)
Returns the specified class's nest host.
|
Class<?>[] |
getNestMembers(Class<?> type)
Returns the nest members of the other class.
|
boolean |
isNestmateOf(Class<?> type,
Class<?> candidate)
Returns
true if the specified type is a nest mate of the other type. |
static TypeDescription.ForLoadedType.Dispatcher.ForLegacyVm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TypeDescription.ForLoadedType.Dispatcher.ForLegacyVm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TypeDescription.ForLoadedType.Dispatcher.ForLegacyVm INSTANCE
public static TypeDescription.ForLoadedType.Dispatcher.ForLegacyVm[] values()
for (TypeDescription.ForLoadedType.Dispatcher.ForLegacyVm c : TypeDescription.ForLoadedType.Dispatcher.ForLegacyVm.values()) System.out.println(c);
public static TypeDescription.ForLoadedType.Dispatcher.ForLegacyVm 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<?> getNestHost(Class<?> type)
getNestHost
in interface TypeDescription.ForLoadedType.Dispatcher
type
- The class for which to locate the nest host.public Class<?>[] getNestMembers(Class<?> type)
getNestMembers
in interface TypeDescription.ForLoadedType.Dispatcher
type
- The type to get the nest members for.public boolean isNestmateOf(Class<?> type, Class<?> candidate)
true
if the specified type is a nest mate of the other type.isNestmateOf
in interface TypeDescription.ForLoadedType.Dispatcher
type
- The type to evaluate for being a nest mate of another type.candidate
- The candidate type.true
if the specified type is a nest mate of the other class.Copyright © 2014–2019. All rights reserved.