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 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.ForLegacyVm
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ForJava11CapableVm(Method getNestHost, Method getNestMembers, Method isNestmateOf)
Creates a dispatcher for a Java 11-capable VM.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
Returnstrue
if the specified type is a nest mate of the other type.
-
-
-
Constructor Detail
-
ForJava11CapableVm
protected ForJava11CapableVm(Method getNestHost, Method getNestMembers, Method isNestmateOf)
Creates a dispatcher for a Java 11-capable VM.- Parameters:
getNestHost
- Thejava.lang.Class#getNestHost
method.getNestMembers
- Thejava.lang.Class#getNestMembers
method.isNestmateOf
- Thejava.lang.Class#isNestmateOf
method.
-
-
Method Detail
-
getNestHost
public Class<?> getNestHost(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 Class<?>[] getNestMembers(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(Class<?> type, 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.
-
-