Package net.bytebuddy.description.type
Enum TypeDescription.ForLoadedType.Dispatcher.ForLegacyVm
- java.lang.Object
-
- java.lang.Enum<TypeDescription.ForLoadedType.Dispatcher.ForLegacyVm>
-
- net.bytebuddy.description.type.TypeDescription.ForLoadedType.Dispatcher.ForLegacyVm
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TypeDescription.ForLoadedType.Dispatcher.ForLegacyVm>
,TypeDescription.ForLoadedType.Dispatcher
- Enclosing interface:
- TypeDescription.ForLoadedType.Dispatcher
public static enum TypeDescription.ForLoadedType.Dispatcher.ForLegacyVm extends java.lang.Enum<TypeDescription.ForLoadedType.Dispatcher.ForLegacyVm> implements TypeDescription.ForLoadedType.Dispatcher
A dispatcher for a legacy VM.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.type.TypeDescription.ForLoadedType.Dispatcher
TypeDescription.ForLoadedType.Dispatcher.CreationAction, TypeDescription.ForLoadedType.Dispatcher.ForJava11CapableVm, TypeDescription.ForLoadedType.Dispatcher.ForJava16CapableVm, TypeDescription.ForLoadedType.Dispatcher.ForLegacyVm
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
ForLegacyVm()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getInternalName(java.lang.Object permittedSubclass)
Returns the internal name of a permitted subclass.java.lang.Class<?>
getNestHost(java.lang.Class<?> type)
Returns the specified class's nest host.java.lang.Class<?>[]
getNestMembers(java.lang.Class<?> type)
Returns the nest members of the other class.java.lang.Object[]
getPermittedSubclasses(java.lang.Class<?> type)
Returns the permitted subclasses of the supplied type.boolean
isNestmateOf(java.lang.Class<?> type, java.lang.Class<?> candidate)
Returnstrue
if the specified type is a nest mate of the other type.static TypeDescription.ForLoadedType.Dispatcher.ForLegacyVm
valueOf(java.lang.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.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final TypeDescription.ForLoadedType.Dispatcher.ForLegacyVm INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static TypeDescription.ForLoadedType.Dispatcher.ForLegacyVm[] 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.ForLoadedType.Dispatcher.ForLegacyVm c : TypeDescription.ForLoadedType.Dispatcher.ForLegacyVm.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.ForLoadedType.Dispatcher.ForLegacyVm 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
-
getNestHost
public java.lang.Class<?> getNestHost(java.lang.Class<?> type)
Returns the specified class's nest host.- Specified by:
getNestHost
in interfaceTypeDescription.ForLoadedType.Dispatcher
- Parameters:
type
- The class for which to locate the nest host.- Returns:
- The nest host of the specified class.
-
getNestMembers
public java.lang.Class<?>[] getNestMembers(java.lang.Class<?> type)
Returns the nest members of the other class.- Specified by:
getNestMembers
in interfaceTypeDescription.ForLoadedType.Dispatcher
- Parameters:
type
- The type to get the nest members for.- Returns:
- An array containing all nest members of the specified type's nest group.
-
isNestmateOf
public boolean isNestmateOf(java.lang.Class<?> type, java.lang.Class<?> candidate)
Returnstrue
if the specified type is a nest mate of the other type.- Specified by:
isNestmateOf
in interfaceTypeDescription.ForLoadedType.Dispatcher
- Parameters:
type
- The type to evaluate for being a nest mate of another type.candidate
- The candidate type.- Returns:
true
if the specified type is a nest mate of the other class.
-
getPermittedSubclasses
public java.lang.Object[] getPermittedSubclasses(java.lang.Class<?> type)
Returns the permitted subclasses of the supplied type.- Specified by:
getPermittedSubclasses
in interfaceTypeDescription.ForLoadedType.Dispatcher
- Parameters:
type
- The type for which to check the permitted subclasses.- Returns:
- An array of descriptors of permitted subclasses.
-
getInternalName
public java.lang.String getInternalName(java.lang.Object permittedSubclass)
Returns the internal name of a permitted subclass.- Specified by:
getInternalName
in interfaceTypeDescription.ForLoadedType.Dispatcher
- Parameters:
permittedSubclass
- The permitted subclass descriptor.- Returns:
- The permitted subclasses internal name.
-
-