Enum ClassInjector.UsingLookup.Dispatcher.ForLegacyVm

    • Method Detail

      • values

        public static ClassInjector.UsingLookup.Dispatcher.ForLegacyVm[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ClassInjector.UsingLookup.Dispatcher.ForLegacyVm c : ClassInjector.UsingLookup.Dispatcher.ForLegacyVm.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ClassInjector.UsingLookup.Dispatcher.ForLegacyVm valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • lookupModes

        public int lookupModes​(Object lookup)
        Returns a lookup objects lookup types.
        Specified by:
        lookupModes in interface ClassInjector.UsingLookup.Dispatcher
        Parameters:
        lookup - The lookup instance.
        Returns:
        The modifiers indicating the instance's lookup modes.
      • resolve

        public Object resolve​(Object lookup,
                              Class<?> type)
        Resolves the supplied lookup instance's access scope for the supplied type.
        Specified by:
        resolve in interface ClassInjector.UsingLookup.Dispatcher
        Parameters:
        lookup - The lookup to use.
        type - The type to resolve the scope for.
        Returns:
        An appropriate lookup instance.
      • defineClass

        public Class<?> defineClass​(Object lookup,
                                    byte[] binaryRepresentation)
        Defines a class.
        Specified by:
        defineClass in interface ClassInjector.UsingLookup.Dispatcher
        Parameters:
        lookup - The java.lang.invoke.MethodHandles$Lookup instance to use.
        binaryRepresentation - The defined class's binary representation.
        Returns:
        The defined class.