MethodHandles.PrivateLookupIn(Class, MethodHandles+Lookup) Method

Definition

Returns a lookup object with full capabilities to emulate all supported bytecode behaviors, including private access, on a target class.

[Android.Runtime.Register("privateLookupIn", "(Ljava/lang/Class;Ljava/lang/invoke/MethodHandles$Lookup;)Ljava/lang/invoke/MethodHandles$Lookup;", "", ApiSince=33)]
public static Java.Lang.Invoke.MethodHandles.Lookup? PrivateLookupIn(Java.Lang.Class? targetClass, Java.Lang.Invoke.MethodHandles.Lookup? lookup);
[<Android.Runtime.Register("privateLookupIn", "(Ljava/lang/Class;Ljava/lang/invoke/MethodHandles$Lookup;)Ljava/lang/invoke/MethodHandles$Lookup;", "", ApiSince=33)>]
static member PrivateLookupIn : Java.Lang.Class * Java.Lang.Invoke.MethodHandles.Lookup -> Java.Lang.Invoke.MethodHandles.Lookup

Parameters

targetClass
Class

the target class

lookup
MethodHandles.Lookup

the caller lookup object

Returns

a lookup object for the target class, with private access

Attributes

Remarks

Java documentation for java.lang.invoke.MethodHandles.privateLookupIn(java.lang.Class, java.lang.invoke.MethodHandles.Lookup).

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