MethodHandles.Lookup
Class MethodHandles.Lookup
- java.lang.Object
-
- java.lang.invoke.MethodHandles.Lookup
- Enclosing class:
- MethodHandles
public static final class MethodHandles.Lookup extends Object
A lookup object is a factory for creating method handles, when the creation requires access checking. Method handles do not perform access checks when they are called, but rather when they are created. Therefore, method handle access restrictions must be enforced when a method handle is created. The caller class against which those restrictions are enforced is known as the lookup class.
A lookup class wh