Interface ClassInjector.UsingLookup.Dispatcher

    • Method Detail

      • isAlive

        boolean isAlive()
        Indicates if this dispatcher is available on the current VM.
        Returns:
        true if this dispatcher is alive.
      • lookupType

        java.lang.Class<?> lookupType​(java.lang.Object lookup)
        Returns the lookup type for a given method handle lookup.
        Parameters:
        lookup - The lookup instance.
        Returns:
        The lookup type.
      • lookupModes

        int lookupModes​(java.lang.Object lookup)
        Returns a lookup objects lookup types.
        Parameters:
        lookup - The lookup instance.
        Returns:
        The modifiers indicating the instance's lookup modes.
      • dropLookupMode

        java.lang.Object dropLookupMode​(java.lang.Object lookup,
                                        int mode)
        Drops a given lookup mode from a lookup instance.
        Parameters:
        lookup - The lookup instance.
        mode - The modes to drop.
        Returns:
        A new lookup instance where the modes were dropped.
      • defineClass

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