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

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

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

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

        Class<?> defineClass​(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.