public static class MethodHandles.Lookup
- Object
- MethodHandles.Lookup
Fields
public static final int PUBLIC = 1 | |
public static final int PRIVATE = 2 | |
public static final int PROTECTED = 4 | |
public static final int PACKAGE = 8 |
Constructors
public Lookup() |
Methods
Inherited methods
Field details
PUBLIC
public static final int PUBLIC = 1PRIVATE
public static final int PRIVATE = 2PROTECTED
public static final int PROTECTED = 4PACKAGE
public static final int PACKAGE = 8Constructor details
Lookup
public Lookup()Method details
lookupClass
public Class<?> lookupClass()lookupModes
public int lookupModes()in
public MethodHandles.Lookup in(Class<?> a)findStatic
public MethodHandle findStatic(Class<?> a, String b, MethodType c)
throws NoSuchMethodException, IllegalAccessExceptionThrows
NoSuchMethodExceptionIllegalAccessException
findVirtual
public MethodHandle findVirtual(Class<?> a, String b, MethodType c)
throws NoSuchMethodException, IllegalAccessExceptionThrows
NoSuchMethodExceptionIllegalAccessException
findConstructor
public MethodHandle findConstructor(Class<?> a, MethodType b)
throws NoSuchMethodException, IllegalAccessExceptionThrows
NoSuchMethodExceptionIllegalAccessException
findSpecial
public MethodHandle findSpecial(Class<?> a, String b, MethodType c, Class<?> d)
throws NoSuchMethodException, IllegalAccessExceptionThrows
NoSuchMethodExceptionIllegalAccessException
findGetter
public MethodHandle findGetter(Class<?> a, String b, Class<?> c)
throws NoSuchFieldException, IllegalAccessExceptionThrows
NoSuchFieldExceptionIllegalAccessException
findSetter
public MethodHandle findSetter(Class<?> a, String b, Class<?> c)
throws NoSuchFieldException, IllegalAccessExceptionThrows
NoSuchFieldExceptionIllegalAccessException
findStaticGetter
public MethodHandle findStaticGetter(Class<?> a, String b, Class<?> c)
throws NoSuchFieldException, IllegalAccessExceptionThrows
NoSuchFieldExceptionIllegalAccessException
findStaticSetter
public MethodHandle findStaticSetter(Class<?> a, String b, Class<?> c)
throws NoSuchFieldException, IllegalAccessExceptionThrows
NoSuchFieldExceptionIllegalAccessException
bind
public MethodHandle bind(Object a, String b, MethodType c)
throws NoSuchMethodException, IllegalAccessExceptionThrows
NoSuchMethodExceptionIllegalAccessException
unreflect
public MethodHandle unreflect(Object a)
throws IllegalAccessExceptionThrows
unreflectSpecial
public MethodHandle unreflectSpecial(Object a, Class<?> b)
throws IllegalAccessExceptionThrows
unreflectConstructor
public MethodHandle unreflectConstructor(Object a)
throws IllegalAccessExceptionThrows
unreflectGetter
public MethodHandle unreflectGetter(Object a)
throws IllegalAccessExceptionThrows
unreflectSetter
public MethodHandle unreflectSetter(Object a)
throws IllegalAccessExceptionThrows
revealDirect
public MethodHandleInfo revealDirect(MethodHandle a)