Package net.bytebuddy.description.type
Class TypeDescription.ForLoadedType.Dispatcher.ForJava11CapableVm
- java.lang.Object
-
- net.bytebuddy.description.type.TypeDescription.ForLoadedType.Dispatcher.ForJava11CapableVm
-
- All Implemented Interfaces:
TypeDescription.ForLoadedType.Dispatcher
- Enclosing interface:
- TypeDescription.ForLoadedType.Dispatcher
public static class TypeDescription.ForLoadedType.Dispatcher.ForJava11CapableVm extends java.lang.Object implements TypeDescription.ForLoadedType.Dispatcher
A dispatcher for a Java 11-capable 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
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.reflect.MethodgetNestHostThejava.lang.Class#getNestHostmethod.private java.lang.reflect.MethodgetNestMembersThejava.lang.Class#getNestMembersmethod.private java.lang.reflect.MethodisNestmateOfThejava.lang.Class#isNestmateOfmethod.
-
Constructor Summary
Constructors Modifier Constructor Description protectedForJava11CapableVm(java.lang.reflect.Method getNestHost, java.lang.reflect.Method getNestMembers, java.lang.reflect.Method isNestmateOf)Creates a dispatcher for a Java 11-capable VM.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetInternalName(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.booleanisNestmateOf(java.lang.Class<?> type, java.lang.Class<?> candidate)Returnstrueif the specified type is a nest mate of the other type.
-
-
-
Field Detail
-
getNestHost
private final java.lang.reflect.Method getNestHost
Thejava.lang.Class#getNestHostmethod.
-
getNestMembers
private final java.lang.reflect.Method getNestMembers
Thejava.lang.Class#getNestMembersmethod.
-
isNestmateOf
private final java.lang.reflect.Method isNestmateOf
Thejava.lang.Class#isNestmateOfmethod.
-
-
Constructor Detail
-
ForJava11CapableVm
protected ForJava11CapableVm(java.lang.reflect.Method getNestHost, java.lang.reflect.Method getNestMembers, java.lang.reflect.Method isNestmateOf)Creates a dispatcher for a Java 11-capable VM.- Parameters:
getNestHost- Thejava.lang.Class#getNestHostmethod.getNestMembers- Thejava.lang.Class#getNestMembersmethod.isNestmateOf- Thejava.lang.Class#isNestmateOfmethod.
-
-
Method Detail
-
getNestHost
public java.lang.Class<?> getNestHost(java.lang.Class<?> type)
Returns the specified class's nest host.- Specified by:
getNestHostin 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:
getNestMembersin 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)Returnstrueif the specified type is a nest mate of the other type.- Specified by:
isNestmateOfin interfaceTypeDescription.ForLoadedType.Dispatcher- Parameters:
type- The type to evaluate for being a nest mate of another type.candidate- The candidate type.- Returns:
trueif 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:
getPermittedSubclassesin 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:
getInternalNamein interfaceTypeDescription.ForLoadedType.Dispatcher- Parameters:
permittedSubclass- The permitted subclass descriptor.- Returns:
- The permitted subclasses internal name.
-
-