Language

MethodLookupModes Enum

Definition

public enum MethodLookupModes
type MethodLookupModes = 
Inheritance
MethodLookupModes

Fields

Name Value Description
Public 1

A single-bit mask representing public access, which may contribute to the result of lookupModes. The value, 0x01, happens to be the same as the value of the public modifier bit. A Lookup with this lookup mode performs cross-module access check with respect to the lookup class and previous lookup class if present.

Java reference for java.lang.invoke.MethodHandles.Lookup.PUBLIC.

Private 2

A single-bit mask representing private access, which may contribute to the result of lookupModes. The value, 0x02, happens to be the same as the value of the private modifier bit.

Java reference for java.lang.invoke.MethodHandles.Lookup.PRIVATE.

Protected 4

A single-bit mask representing protected access, which may contribute to the result of lookupModes. The value, 0x04, happens to be the same as the value of the protected modifier bit.

Java reference for java.lang.invoke.MethodHandles.Lookup.PROTECTED.

Package 8

A single-bit mask representing package access (default access), which may contribute to the result of lookupModes. The value is 0x08, which does not correspond meaningfully to any particular modifier bit.

Java reference for java.lang.invoke.MethodHandles.Lookup.PACKAGE.

Remarks

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