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​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • dropLookupMode

        public java.lang.Object dropLookupMode​(java.lang.Object lookup,
                                               int mode)
        Description copied from interface: ClassInjector.UsingLookup.Dispatcher
        Drops a given lookup mode from a lookup instance.
        Specified by:
        dropLookupMode in interface ClassInjector.UsingLookup.Dispatcher
        Parameters:
        lookup - The lookup instance.
        mode - The modes to drop.
        Returns:
        A new lookup instance where the modes were dropped.
      • defineClass

        public java.lang.Class<?> defineClass​(java.lang.Object lookup,
                                              byte[] binaryRepresentation)
        Description copied from interface: ClassInjector.UsingLookup.Dispatcher
        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.