Package net.bytebuddy.description.type
Interface TypeDescription.ForLoadedType.Dispatcher
-
- All Known Implementing Classes:
TypeDescription.ForLoadedType.Dispatcher.ForJava11CapableVm,TypeDescription.ForLoadedType.Dispatcher.ForJava16CapableVm,TypeDescription.ForLoadedType.Dispatcher.ForLegacyVm
- Enclosing class:
- TypeDescription.ForLoadedType
protected static interface TypeDescription.ForLoadedType.DispatcherA dispatcher for using methods ofClassthat are not declared for Java 6.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTypeDescription.ForLoadedType.Dispatcher.CreationActionAn action to resolve the dispatcher for invoking methods ofClassreflectively.static classTypeDescription.ForLoadedType.Dispatcher.ForJava11CapableVmA dispatcher for a Java 11-capable VM.static classTypeDescription.ForLoadedType.Dispatcher.ForJava16CapableVmA dispatcher for a Java 16-capable VM.static classTypeDescription.ForLoadedType.Dispatcher.ForLegacyVmA dispatcher for a legacy VM.
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
getNestHost
java.lang.Class<?> getNestHost(java.lang.Class<?> type)
Returns the specified class's nest host.- Parameters:
type- The class for which to locate the nest host.- Returns:
- The nest host of the specified class.
-
getNestMembers
java.lang.Class<?>[] getNestMembers(java.lang.Class<?> type)
Returns the nest members of the other class.- 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
boolean isNestmateOf(java.lang.Class<?> type, java.lang.Class<?> candidate)Returnstrueif the specified type is a nest mate of the other type.- 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
java.lang.Object[] getPermittedSubclasses(java.lang.Class<?> type)
Returns the permitted subclasses of the supplied type.- Parameters:
type- The type for which to check the permitted subclasses.- Returns:
- An array of descriptors of permitted subclasses.
-
getInternalName
java.lang.String getInternalName(java.lang.Object permittedSubclass)
Returns the internal name of a permitted subclass.- Parameters:
permittedSubclass- The permitted subclass descriptor.- Returns:
- The permitted subclasses internal name.
-
-