Package net.bytebuddy.utility
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 withjava.lang.invoke.MethodHandles$Lookup
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Class<?>
lookupClass(java.lang.Object value)
Resolves the lookup type for a given lookup instance.java.lang.Object
revealDirect(java.lang.Object value, java.lang.Object handle)
Reveals thejava.lang.invoke.MethodHandleInfo
for the supplied method handle.
-
-
-
Method Detail
-
lookupClass
java.lang.Class<?> lookupClass(java.lang.Object value)
Resolves the lookup type for a given lookup instance.- Parameters:
value
- Thejava.lang.invoke.MethodHandles$Lookup
to resolve.- Returns:
- The lookup's lookup class.
-
revealDirect
java.lang.Object revealDirect(java.lang.Object value, @Proxied("java.lang.invoke.MethodHandle") java.lang.Object handle)
Reveals thejava.lang.invoke.MethodHandleInfo
for the supplied method handle.- Parameters:
value
- Thejava.lang.invoke.MethodHandles$Lookup
to use for resolving the supplied handlehandle
- Thejava.lang.invoke.MethodHandle
to resolve.- Returns:
- A
java.lang.invoke.MethodHandleInfo
representing the supplied method handle.
-
-