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

    Modifier and Type
    Method
    Description
    defineClass(Object lookup, byte[] binaryRepresentation)
    Defines the represented class.
    Returns the lookup type for a given method handle lookup.
    int
    Returns a lookup objects lookup types.
  • Method Details

    • lookupClass

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

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