public static class TypeDescription.ForLoadedType.Dispatcher.ForJava11CapableVm extends Object implements TypeDescription.ForLoadedType.Dispatcher
TypeDescription.ForLoadedType.Dispatcher.CreationAction, TypeDescription.ForLoadedType.Dispatcher.ForJava11CapableVm, TypeDescription.ForLoadedType.Dispatcher.ForLegacyVm
Modifier | Constructor and Description |
---|---|
protected |
ForJava11CapableVm(Method getNestHost,
Method getNestMembers,
Method isNestmateOf)
Creates a dispatcher for a Java 11-capable VM.
|
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. |
protected ForJava11CapableVm(Method getNestHost, Method getNestMembers, Method isNestmateOf)
getNestHost
- The java.lang.Class#getNestHost
method.getNestMembers
- The java.lang.Class#getNestMembers
method.isNestmateOf
- The java.lang.Class#isNestmateOf
method.public 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–2024. All rights reserved.