Interface ClassInjector.UsingLookup.MethodHandles.Lookup

  • Enclosing interface:
    ClassInjector.UsingLookup.MethodHandles

    @Proxied("java.lang.invoke.MethodHandles$Lookup")
    public static interface ClassInjector.UsingLookup.MethodHandles.Lookup
    A dispatcher for java.lang.invoke.MethodHandles$Lookup.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Class<?> defineClass​(java.lang.Object lookup, byte[] binaryRepresentation)
      Defines the represented class.
      java.lang.Class<?> lookupClass​(java.lang.Object lookup)
      Returns the lookup type for a given method handle lookup.
      int lookupModes​(java.lang.Object lookup)
      Returns a lookup objects lookup types.
    • Method Detail

      • lookupClass

        java.lang.Class<?> lookupClass​(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.
      • defineClass

        java.lang.Class<?> defineClass​(java.lang.Object lookup,
                                       byte[] binaryRepresentation)
                                throws java.lang.IllegalAccessException
        Defines the represented class.
        Parameters:
        lookup - The lookup instance.
        binaryRepresentation - The binary representation.
        Returns:
        The defined class.
        Throws:
        java.lang.IllegalAccessException - If the definition implies an illegal access.