public static class TypeDescription.ForLoadedType.Dispatcher.ForJava11CapableVm extends java.lang.Object implements TypeDescription.ForLoadedType.Dispatcher
TypeDescription.ForLoadedType.Dispatcher.CreationAction, TypeDescription.ForLoadedType.Dispatcher.ForJava11CapableVm, TypeDescription.ForLoadedType.Dispatcher.ForLegacyVm| Modifier and Type | Field and Description |
|---|---|
private java.lang.reflect.Method |
getNestHost
The
java.lang.Class#getNestHost method. |
private java.lang.reflect.Method |
getNestMembers
The
java.lang.Class#getNestMembers method. |
private java.lang.reflect.Method |
isNestmateOf
The
java.lang.Class#isNestmateOf method. |
| Modifier | Constructor and Description |
|---|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean |
isNestmateOf(java.lang.Class<?> type,
java.lang.Class<?> candidate)
Returns
true if the specified type is a nest mate of the other type. |
private final java.lang.reflect.Method getNestHost
java.lang.Class#getNestHost method.private final java.lang.reflect.Method getNestMembers
java.lang.Class#getNestMembers method.private final java.lang.reflect.Method isNestmateOf
java.lang.Class#isNestmateOf method.protected ForJava11CapableVm(java.lang.reflect.Method getNestHost,
java.lang.reflect.Method getNestMembers,
java.lang.reflect.Method isNestmateOf)
getNestHost - The java.lang.Class#getNestHost method.getNestMembers - The java.lang.Class#getNestMembers method.isNestmateOf - The java.lang.Class#isNestmateOf method.public java.lang.Class<?> getNestHost(java.lang.Class<?> type)
getNestHost in interface TypeDescription.ForLoadedType.Dispatchertype - The class for which to locate the nest host.public java.lang.Class<?>[] getNestMembers(java.lang.Class<?> type)
getNestMembers in interface TypeDescription.ForLoadedType.Dispatchertype - The type to get the nest members for.public boolean isNestmateOf(java.lang.Class<?> type,
java.lang.Class<?> candidate)
true if the specified type is a nest mate of the other type.isNestmateOf in interface TypeDescription.ForLoadedType.Dispatchertype - 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.