Share via


MethodHandles.Lookup.RevealDirect(MethodHandle) Method

Definition

Cracks a direct method handle created by this lookup object or a similar one.

[Android.Runtime.Register("revealDirect", "(Ljava/lang/invoke/MethodHandle;)Ljava/lang/invoke/MethodHandleInfo;", "", ApiSince=26)]
public Java.Lang.Invoke.IMethodHandleInfo RevealDirect (Java.Lang.Invoke.MethodHandle target);
[<Android.Runtime.Register("revealDirect", "(Ljava/lang/invoke/MethodHandle;)Ljava/lang/invoke/MethodHandleInfo;", "", ApiSince=26)>]
member this.RevealDirect : Java.Lang.Invoke.MethodHandle -> Java.Lang.Invoke.IMethodHandleInfo

Parameters

target
MethodHandle

a direct method handle to crack into symbolic reference components

Returns

a symbolic reference which can be used to reconstruct this method handle from this lookup object

Attributes

Remarks

Cracks a direct method handle created by this lookup object or a similar one. Security and access checks are performed to ensure that this lookup object is capable of reproducing the target method handle. This means that the cracking may fail if target is a direct method handle but was created by an unrelated lookup object. This can happen if the method handle is caller sensitive and was created by a lookup object for a different class.

Added in 1.8.

Java documentation for java.lang.invoke.MethodHandles.Lookup.revealDirect(java.lang.invoke.MethodHandle).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to