java.dyn
Class MethodHandles.Lookup

java.lang.Object
  extended by java.dyn.MethodHandles.Lookup
Enclosing class:
MethodHandles

public static final class MethodHandles.Lookup
extends java.lang.Object


Field Summary
static MethodHandles.Lookup PUBLIC_LOOKUP
           
 
Method Summary
 MethodHandle bind(java.lang.Object receiver, java.lang.String name, MethodType type)
           
 MethodHandle findSpecial(java.lang.Class<?> defc, java.lang.String name, MethodType type, java.lang.Class<?> specialCaller)
           
 MethodHandle findStatic(java.lang.Class<?> defc, java.lang.String name, MethodType type)
           
 MethodHandle findVirtual(java.lang.Class<?> defc, java.lang.String name, MethodType type)
           
 MethodHandles.Lookup in(java.lang.Class<?> newLookupClass)
           
 java.lang.Class<?> lookupClass()
           
 java.lang.String toString()
           
 MethodHandle unreflect(java.lang.reflect.Method m)
           
 MethodHandle unreflectConstructor(java.lang.reflect.Constructor ctor)
           
 MethodHandle unreflectGetter(java.lang.reflect.Field f)
           
 MethodHandle unreflectSetter(java.lang.reflect.Field f)
           
 MethodHandle unreflectSpecial(java.lang.reflect.Method m, java.lang.Class<?> specialCaller)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PUBLIC_LOOKUP

public static final MethodHandles.Lookup PUBLIC_LOOKUP
Method Detail

lookupClass

public java.lang.Class<?> lookupClass()

in

public MethodHandles.Lookup in(java.lang.Class<?> newLookupClass)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

findStatic

public MethodHandle findStatic(java.lang.Class<?> defc,
                               java.lang.String name,
                               MethodType type)
                        throws NoAccessException
Throws:
NoAccessException

findVirtual

public MethodHandle findVirtual(java.lang.Class<?> defc,
                                java.lang.String name,
                                MethodType type)
                         throws NoAccessException
Throws:
NoAccessException

findSpecial

public MethodHandle findSpecial(java.lang.Class<?> defc,
                                java.lang.String name,
                                MethodType type,
                                java.lang.Class<?> specialCaller)
                         throws NoAccessException
Throws:
NoAccessException

bind

public MethodHandle bind(java.lang.Object receiver,
                         java.lang.String name,
                         MethodType type)
                  throws NoAccessException
Throws:
NoAccessException

unreflect

public MethodHandle unreflect(java.lang.reflect.Method m)
                       throws NoAccessException
Throws:
NoAccessException

unreflectSpecial

public MethodHandle unreflectSpecial(java.lang.reflect.Method m,
                                     java.lang.Class<?> specialCaller)
                              throws NoAccessException
Throws:
NoAccessException

unreflectConstructor

public MethodHandle unreflectConstructor(java.lang.reflect.Constructor ctor)
                                  throws NoAccessException
Throws:
NoAccessException

unreflectGetter

public MethodHandle unreflectGetter(java.lang.reflect.Field f)
                             throws NoAccessException
Throws:
NoAccessException

unreflectSetter

public MethodHandle unreflectSetter(java.lang.reflect.Field f)
                             throws NoAccessException
Throws:
NoAccessException