public static final class MethodHandles.Lookup extends Object
Modifier and Type | Field and Description |
---|---|
static int |
PACKAGE |
static int |
PRIVATE |
static int |
PROTECTED |
static int |
PUBLIC |
Constructor and Description |
---|
Lookup() |
public static final int PUBLIC
public static final int PRIVATE
public static final int PROTECTED
public static final int PACKAGE
public Class<?> lookupClass()
public int lookupModes()
public MethodHandles.Lookup in(Class<?> requestedLookupClass)
public MethodHandle findStatic(Class<?> refc, String name, MethodType type) throws NoSuchMethodException, IllegalAccessException
public MethodHandle findVirtual(Class<?> refc, String name, MethodType type) throws NoSuchMethodException, IllegalAccessException
public MethodHandle findConstructor(Class<?> refc, MethodType type) throws NoSuchMethodException, IllegalAccessException
public MethodHandle findSpecial(Class<?> refc, String name, MethodType type, Class<?> specialCaller) throws NoSuchMethodException, IllegalAccessException
public MethodHandle findGetter(Class<?> refc, String name, Class<?> type) throws NoSuchFieldException, IllegalAccessException
public MethodHandle findSetter(Class<?> refc, String name, Class<?> type) throws NoSuchFieldException, IllegalAccessException
public MethodHandle findStaticGetter(Class<?> refc, String name, Class<?> type) throws NoSuchFieldException, IllegalAccessException
public MethodHandle findStaticSetter(Class<?> refc, String name, Class<?> type) throws NoSuchFieldException, IllegalAccessException
public MethodHandle bind(Object receiver, String name, MethodType type) throws NoSuchMethodException, IllegalAccessException
public MethodHandle unreflect(Method m) throws IllegalAccessException
IllegalAccessException
public MethodHandle unreflectSpecial(Method m, Class<?> specialCaller) throws IllegalAccessException
IllegalAccessException
public MethodHandle unreflectConstructor(Constructor<?> c) throws IllegalAccessException
IllegalAccessException
public MethodHandle unreflectGetter(Field f) throws IllegalAccessException
IllegalAccessException
public MethodHandle unreflectSetter(Field f) throws IllegalAccessException
IllegalAccessException
public MethodHandleInfo revealDirect(MethodHandle target)