MethodHandles.Lookup

public static final class MethodHandles.Lookup extends Object

Constant Summary

int PACKAGE
int PRIVATE
int PROTECTED
int PUBLIC

Public Constructor Summary

Public Method Summary

MethodHandle
bind(Object receiver, String name, MethodType type)
MethodHandle
MethodHandle
findGetter(Class<?> refc, String name, Class<?> type)
MethodHandle
findSetter(Class<?> refc, String name, Class<?> type)
MethodHandle
findSpecial(Class<?> refc, String name, MethodType type, Class<?> specialCaller)
MethodHandle
findStatic(Class<?> refc, String name, MethodType type)
MethodHandle
findStaticGetter(Class<?> refc, String name, Class<?> type)
MethodHandle
findStaticSetter(Class<?> refc, String name, Class<?> type)
MethodHandle
findVirtual(Class<?> refc, String name, MethodType type)
MethodHandles.Lookup
in(Class<?> requestedLookupClass)
Class<?>
int
MethodHandleInfo
MethodHandle
MethodHandle
MethodHandle
MethodHandle
MethodHandle
unreflectSpecial(Method m, Class<?> specialCaller)

Inherited Method Summary

Constants

public static final int PACKAGE

Constant Value: 0

public static final int PRIVATE

Constant Value: 0

public static final int PROTECTED

Constant Value: 0

public static final int PUBLIC

Constant Value: 0

Public Constructors

public MethodHandles.Lookup ()

Public Methods

public MethodHandle bind (Object receiver, String name, MethodType type)

Parameters
receiver
name
type

public MethodHandle findConstructor (Class<?> refc, MethodType type)

Parameters
refc
type

public MethodHandle findGetter (Class<?> refc, String name, Class<?> type)

Parameters
refc
name
type

public MethodHandle findSetter (Class<?> refc, String name, Class<?> type)

Parameters
refc
name
type

public MethodHandle findSpecial (Class<?> refc, String name, MethodType type, Class<?> specialCaller)

Parameters
refc
name
type
specialCaller

public MethodHandle findStatic (Class<?> refc, String name, MethodType type)

Parameters
refc
name
type

public MethodHandle findStaticGetter (Class<?> refc, String name, Class<?> type)

Parameters
refc
name
type

public MethodHandle findStaticSetter (Class<?> refc, String name, Class<?> type)

Parameters
refc
name
type

public MethodHandle findVirtual (Class<?> refc, String name, MethodType type)

Parameters
refc
name
type

public MethodHandles.Lookup in (Class<?> requestedLookupClass)

Parameters
requestedLookupClass

public Class<?> lookupClass ()

public int lookupModes ()

public MethodHandleInfo revealDirect (MethodHandle target)

Parameters
target

public MethodHandle unreflect (Method m)

Parameters
m

public MethodHandle unreflectConstructor (Constructor<?> c)

Parameters
c

public MethodHandle unreflectGetter (Field f)

Parameters
f

public MethodHandle unreflectSetter (Field f)

Parameters
f

public MethodHandle unreflectSpecial (Method m, Class<?> specialCaller)

Parameters
m
specialCaller