Home | History | Annotate | Download | only in invoke

Lines Matching refs:Lookup

30 import java.lang.invoke.MethodHandles.Lookup;
36 * To crack a direct method handle, call {@link Lookup#revealDirect Lookup.revealDirect}.
46 * <li>By calling one of the <a href="MethodHandles.Lookup.html#lookups">Lookup Factory Methods</a>,
47 * such as {@link Lookup#findVirtual Lookup.findVirtual},
50 * <li>By calling the factory method {@link Lookup#unreflect Lookup.unreflect}
51 * or {@link Lookup#unreflectSpecial Lookup.unreflectSpecial}
53 * <li>By calling the factory method {@link Lookup#unreflectConstructor Lookup.unreflectConstructor}
55 * <li>By calling the factory method {@link Lookup#unreflectGetter Lookup.unreflectGetter}
56 * or {@link Lookup#unreflectSetter Lookup.unreflectSetter}
61 * Given a suitable {@code Lookup} object, it is possible to crack any direct method handle
63 * Cracking must be done via a {@code Lookup} object equivalent to that which created
67 * If the underlying method is <a href="MethodHandles.Lookup.html#callsens">caller sensitive</a>,
69 * {@linkplain java.lang.invoke.MethodHandles.Lookup#lookupClass() lookup class}
70 * of the lookup object used to create it.
71 * Cracking this method handle with a different lookup class will fail
74 * The requirement of lookup object matching provides a "fast fail" behavior
80 * The <a href="MethodHandles.Lookup.html#lookups">Lookup Factory Methods</a>
192 * The underlying member must be accessible to the given lookup object.
195 * @param lookup the lookup object that created this MethodHandleInfo, or one with equivalent access privileges
199 * @exception IllegalArgumentException if the underlying member is not accessible to the given lookup object
201 public <T extends Member> T reflectAs(Class<T> expected, Lookup lookup);