public static class TypeDescription.ForLoadedType.Dispatcher.ForJava16CapableVm extends Object implements TypeDescription.ForLoadedType.Dispatcher
TypeDescription.ForLoadedType.Dispatcher.CreationAction, TypeDescription.ForLoadedType.Dispatcher.ForJava11CapableVm, TypeDescription.ForLoadedType.Dispatcher.ForJava16CapableVm, TypeDescription.ForLoadedType.Dispatcher.ForLegacyVm
Modifier | Constructor and Description |
---|---|
protected |
ForJava16CapableVm(Method getNestHost,
Method getNestMembers,
Method isNestmateOf,
Method permittedSubclasses,
Method descriptorString)
Creates a dispatcher for a Java 11-capable VM.
|
Modifier and Type | Method and Description |
---|---|
String |
getInternalName(Object permittedSubclass)
Returns the internal name of a permitted subclass.
|
Class<?> |
getNestHost(Class<?> type)
Returns the specified class's nest host.
|
Class<?>[] |
getNestMembers(Class<?> type)
Returns the nest members of the other class.
|
Object[] |
getPermittedSubclasses(Class<?> type)
Returns the permitted subclasses of the supplied type.
|
boolean |
isNestmateOf(Class<?> type,
Class<?> candidate)
Returns
true if the specified type is a nest mate of the other type. |
protected ForJava16CapableVm(Method getNestHost, Method getNestMembers, Method isNestmateOf, Method permittedSubclasses, Method descriptorString)
getNestHost
- The java.lang.Class#getNestHost
method.getNestMembers
- The java.lang.Class#getNestMembers
method.isNestmateOf
- The java.lang.Class#isNestmateOf
method.permittedSubclasses
- The java.lang.Class#permittedSubclasses
method.descriptorString
- The java.lang.constant.ClassDesc#descriptorString
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.public Object[] getPermittedSubclasses(Class<?> type)
getPermittedSubclasses
in interface TypeDescription.ForLoadedType.Dispatcher
type
- The type for which to check the permitted subclasses.public String getInternalName(Object permittedSubclass)
getInternalName
in interface TypeDescription.ForLoadedType.Dispatcher
permittedSubclass
- The permitted subclass descriptor.Copyright © 2014–2020. All rights reserved.