Class MethodHandles.Lookup
java.lang.Object
java.lang.invoke.MethodHandles.Lookup
- Enclosing class:
MethodHandles
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbind(Object a, String b, MethodType c) findConstructor(Class<?> a, MethodType b) findGetter(Class<?> a, String b, Class<?> c) findSetter(Class<?> a, String b, Class<?> c) findSpecial(Class<?> a, String b, MethodType c, Class<?> d) findStatic(Class<?> a, String b, MethodType c) findStaticGetter(Class<?> a, String b, Class<?> c) findStaticSetter(Class<?> a, String b, Class<?> c) findVirtual(Class<?> a, String b, MethodType c) Class<?> intjava.lang.invoke.MethodHandleInfounreflectSpecial(Object a, Class<?> b)
-
Field Details
-
PUBLIC
public static final int PUBLIC- See Also:
-
PRIVATE
public static final int PRIVATE- See Also:
-
PROTECTED
public static final int PROTECTED- See Also:
-
PACKAGE
public static final int PACKAGE- See Also:
-
-
Constructor Details
-
Lookup
public Lookup()
-
-
Method Details
-
lookupClass
-
lookupModes
public int lookupModes() -
in
-
findStatic
public MethodHandle findStatic(Class<?> a, String b, MethodType c) throws java.lang.NoSuchMethodException, IllegalAccessException - Throws:
java.lang.NoSuchMethodExceptionIllegalAccessException
-
findVirtual
public MethodHandle findVirtual(Class<?> a, String b, MethodType c) throws java.lang.NoSuchMethodException, IllegalAccessException - Throws:
java.lang.NoSuchMethodExceptionIllegalAccessException
-
findConstructor
public MethodHandle findConstructor(Class<?> a, MethodType b) throws java.lang.NoSuchMethodException, IllegalAccessException - Throws:
java.lang.NoSuchMethodExceptionIllegalAccessException
-
findSpecial
public MethodHandle findSpecial(Class<?> a, String b, MethodType c, Class<?> d) throws java.lang.NoSuchMethodException, IllegalAccessException - Throws:
java.lang.NoSuchMethodExceptionIllegalAccessException
-
findGetter
public MethodHandle findGetter(Class<?> a, String b, Class<?> c) throws java.lang.NoSuchFieldException, IllegalAccessException - Throws:
java.lang.NoSuchFieldExceptionIllegalAccessException
-
findSetter
public MethodHandle findSetter(Class<?> a, String b, Class<?> c) throws java.lang.NoSuchFieldException, IllegalAccessException - Throws:
java.lang.NoSuchFieldExceptionIllegalAccessException
-
findStaticGetter
public MethodHandle findStaticGetter(Class<?> a, String b, Class<?> c) throws java.lang.NoSuchFieldException, IllegalAccessException - Throws:
java.lang.NoSuchFieldExceptionIllegalAccessException
-
findStaticSetter
public MethodHandle findStaticSetter(Class<?> a, String b, Class<?> c) throws java.lang.NoSuchFieldException, IllegalAccessException - Throws:
java.lang.NoSuchFieldExceptionIllegalAccessException
-
bind
public MethodHandle bind(Object a, String b, MethodType c) throws java.lang.NoSuchMethodException, IllegalAccessException - Throws:
java.lang.NoSuchMethodExceptionIllegalAccessException
-
unreflect
- Throws:
IllegalAccessException
-
unreflectSpecial
- Throws:
IllegalAccessException
-
unreflectConstructor
- Throws:
IllegalAccessException
-
unreflectGetter
- Throws:
IllegalAccessException
-
unreflectSetter
- Throws:
IllegalAccessException
-
revealDirect
-