Package java.dyn
Class MethodHandles.Lookup
- java.lang.Object
-
- java.dyn.MethodHandles.Lookup
-
- Enclosing class:
- MethodHandles
public static final class MethodHandles.Lookup extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static MethodHandles.Lookup
PUBLIC_LOOKUP
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
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 classjava.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
-
-