Class TypeDescription.ForLoadedType.Dispatcher.ForJava11CapableVm

    • Constructor Detail

      • ForJava11CapableVm

        protected ForJava11CapableVm​(Method getNestHost,
                                     Method getNestMembers,
                                     Method isNestmateOf)
        Creates a dispatcher for a Java 11-capable VM.
        Parameters:
        getNestHost - The java.lang.Class#getNestHost method.
        getNestMembers - The java.lang.Class#getNestMembers method.
        isNestmateOf - The java.lang.Class#isNestmateOf method.
    • Method Detail

      • getNestMembers

        public Class<?>[] getNestMembers​(Class<?> type)
        Returns the nest members of the other class.
        Specified by:
        getNestMembers in interface TypeDescription.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)
        Returns true if the specified type is a nest mate of the other type.
        Specified by:
        isNestmateOf in interface TypeDescription.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.