Udostępnij za pośrednictwem


MethodHandles.Lookup.LookupClass Method

Definition

Tells which class is performing the lookup.

[Android.Runtime.Register("lookupClass", "()Ljava/lang/Class;", "", ApiSince=26)]
public Java.Lang.Class LookupClass ();
[<Android.Runtime.Register("lookupClass", "()Ljava/lang/Class;", "", ApiSince=26)>]
member this.LookupClass : unit -> Java.Lang.Class

Returns

the lookup class, on behalf of which this lookup object finds members

Attributes

Remarks

Tells which class is performing the lookup. It is this class against which checks are performed for visibility and access permissions.

The class implies a maximum level of access permission, but the permissions may be additionally limited by the bitmask #lookupModes lookupModes, which controls whether non-public members can be accessed.

Java documentation for java.lang.invoke.MethodHandles.Lookup.lookupClass().

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