public static 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() |
Modifier and Type | Method and Description |
---|---|
MethodHandle |
bind(Object a,
String b,
MethodType c) |
MethodHandle |
findConstructor(Class<?> a,
MethodType b) |
MethodHandle |
findGetter(Class<?> a,
String b,
Class<?> c) |
MethodHandle |
findSetter(Class<?> a,
String b,
Class<?> c) |
MethodHandle |
findSpecial(Class<?> a,
String b,
MethodType c,
Class<?> d) |
MethodHandle |
findStatic(Class<?> a,
String b,
MethodType c) |
MethodHandle |
findStaticGetter(Class<?> a,
String b,
Class<?> c) |
MethodHandle |
findStaticSetter(Class<?> a,
String b,
Class<?> c) |
MethodHandle |
findVirtual(Class<?> a,
String b,
MethodType c) |
MethodHandles.Lookup |
in(Class<?> a) |
Class<?> |
lookupClass() |
int |
lookupModes() |
java.lang.invoke.MethodHandleInfo |
revealDirect(MethodHandle a) |
MethodHandle |
unreflect(Object a) |
MethodHandle |
unreflectConstructor(Object a) |
MethodHandle |
unreflectGetter(Object a) |
MethodHandle |
unreflectSetter(Object a) |
MethodHandle |
unreflectSpecial(Object a,
Class<?> b) |
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<?> a)
public MethodHandle findStatic(Class<?> a, String b, MethodType c) throws java.lang.NoSuchMethodException, IllegalAccessException
java.lang.NoSuchMethodException
IllegalAccessException
public MethodHandle findVirtual(Class<?> a, String b, MethodType c) throws java.lang.NoSuchMethodException, IllegalAccessException
java.lang.NoSuchMethodException
IllegalAccessException
public MethodHandle findConstructor(Class<?> a, MethodType b) throws java.lang.NoSuchMethodException, IllegalAccessException
java.lang.NoSuchMethodException
IllegalAccessException
public MethodHandle findSpecial(Class<?> a, String b, MethodType c, Class<?> d) throws java.lang.NoSuchMethodException, IllegalAccessException
java.lang.NoSuchMethodException
IllegalAccessException
public MethodHandle findGetter(Class<?> a, String b, Class<?> c) throws java.lang.NoSuchFieldException, IllegalAccessException
java.lang.NoSuchFieldException
IllegalAccessException
public MethodHandle findSetter(Class<?> a, String b, Class<?> c) throws java.lang.NoSuchFieldException, IllegalAccessException
java.lang.NoSuchFieldException
IllegalAccessException
public MethodHandle findStaticGetter(Class<?> a, String b, Class<?> c) throws java.lang.NoSuchFieldException, IllegalAccessException
java.lang.NoSuchFieldException
IllegalAccessException
public MethodHandle findStaticSetter(Class<?> a, String b, Class<?> c) throws java.lang.NoSuchFieldException, IllegalAccessException
java.lang.NoSuchFieldException
IllegalAccessException
public MethodHandle bind(Object a, String b, MethodType c) throws java.lang.NoSuchMethodException, IllegalAccessException
java.lang.NoSuchMethodException
IllegalAccessException
public MethodHandle unreflect(Object a) throws IllegalAccessException
IllegalAccessException
public MethodHandle unreflectSpecial(Object a, Class<?> b) throws IllegalAccessException
IllegalAccessException
public MethodHandle unreflectConstructor(Object a) throws IllegalAccessException
IllegalAccessException
public MethodHandle unreflectGetter(Object a) throws IllegalAccessException
IllegalAccessException
public MethodHandle unreflectSetter(Object a) throws IllegalAccessException
IllegalAccessException
public java.lang.invoke.MethodHandleInfo revealDirect(MethodHandle a)