Interface JavaConstant.MethodHandle.MethodHandles.Lookup

Enclosing interface:
JavaConstant.MethodHandle.MethodHandles

@Proxied("java.lang.invoke.MethodHandles$Lookup") public static interface JavaConstant.MethodHandle.MethodHandles.Lookup
A dispatcher to interact with java.lang.invoke.MethodHandles$Lookup.
  • Method Summary

    Modifier and Type
    Method
    Description
    Resolves the lookup type for a given lookup instance.
    revealDirect(Object value, Object handle)
    Reveals the java.lang.invoke.MethodHandleInfo for the supplied method handle.
  • Method Details

    • lookupClass

      Class<?> lookupClass(Object value)
      Resolves the lookup type for a given lookup instance.
      Parameters:
      value - The java.lang.invoke.MethodHandles$Lookup to resolve.
      Returns:
      The lookup's lookup class.
    • revealDirect

      Object revealDirect(Object value, @Proxied("java.lang.invoke.MethodHandle") Object handle)
      Reveals the java.lang.invoke.MethodHandleInfo for the supplied method handle.
      Parameters:
      value - The java.lang.invoke.MethodHandles$Lookup to use for resolving the supplied handle
      handle - The java.lang.invoke.MethodHandle to resolve.
      Returns:
      A java.lang.invoke.MethodHandleInfo representing the supplied method handle.