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) Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()booleanIndicates whether some other object is "equal to" this one.final ClassgetClass()Returns the runtime class of an object.inthashCode()Returns a hash code value for the object.final voidnotify()Wakes up a single thread that is waiting on this object's monitor.final voidWakes up all threads that are waiting on this object's monitor.toString()Returns a string representation of the object.final voidwait()Causes current thread to wait until another thread invokes the method or the method for this object.final voidwait(long timeout) Causes current thread to wait until either another thread invokes the method or the method for this object, or a specified amount of time has elapsed.final voidwait(long timeout, int nanos) Causes current thread to wait until another thread invokes the method or the method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
-
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
-