public static class MethodHandles.Lookup

  1. Object
  2. MethodHandles.Lookup

Fields

public static final int PUBLIC = 1
public static final int PRIVATE = 2
public static final int PROTECTED = 4
public static final int PACKAGE = 8

Constructors

public Lookup()

Methods

public Class<?> lookupClass()
public int lookupModes()
public MethodHandles.Lookup in(Class<?> a)
public MethodHandle findStatic(Class<?> a, String b, MethodType c) throws NoSuchMethodException, IllegalAccessException
public MethodHandle findVirtual(Class<?> a, String b, MethodType c) throws NoSuchMethodException, IllegalAccessException
public MethodHandle findConstructor(Class<?> a, MethodType b) throws NoSuchMethodException, IllegalAccessException
public MethodHandle findSpecial(Class<?> a, String b, MethodType c, Class<?> d) throws NoSuchMethodException, IllegalAccessException
public MethodHandle findGetter(Class<?> a, String b, Class<?> c) throws NoSuchFieldException, IllegalAccessException
public MethodHandle findSetter(Class<?> a, String b, Class<?> c) throws NoSuchFieldException, IllegalAccessException
public MethodHandle findStaticGetter(Class<?> a, String b, Class<?> c) throws NoSuchFieldException, IllegalAccessException
public MethodHandle findStaticSetter(Class<?> a, String b, Class<?> c) throws NoSuchFieldException, IllegalAccessException
public MethodHandle bind(Object a, String b, MethodType c) throws NoSuchMethodException, IllegalAccessException
public MethodHandle unreflect(Object a) throws IllegalAccessException
public MethodHandle unreflectSpecial(Object a, Class<?> b) throws IllegalAccessException
public MethodHandle unreflectConstructor(Object a) throws IllegalAccessException
public MethodHandle unreflectGetter(Object a) throws IllegalAccessException
public MethodHandle unreflectSetter(Object a) throws IllegalAccessException
public MethodHandleInfo revealDirect(MethodHandle a)

Inherited methods

Field details

PUBLIC

public static final int PUBLIC = 1

PRIVATE

public static final int PRIVATE = 2

PROTECTED

public static final int PROTECTED = 4

PACKAGE

public static final int PACKAGE = 8

Constructor details

Lookup

public Lookup()

Method details

lookupClass

public Class<?> lookupClass()

lookupModes

public int lookupModes()

in

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

findStatic

public MethodHandle findStatic(Class<?> a, String b, MethodType c) throws NoSuchMethodException, IllegalAccessException

Throws

NoSuchMethodException
IllegalAccessException

findVirtual

public MethodHandle findVirtual(Class<?> a, String b, MethodType c) throws NoSuchMethodException, IllegalAccessException

Throws

NoSuchMethodException
IllegalAccessException

findConstructor

public MethodHandle findConstructor(Class<?> a, MethodType b) throws NoSuchMethodException, IllegalAccessException

Throws

NoSuchMethodException
IllegalAccessException

findSpecial

public MethodHandle findSpecial(Class<?> a, String b, MethodType c, Class<?> d) throws NoSuchMethodException, IllegalAccessException

Throws

NoSuchMethodException
IllegalAccessException

findGetter

public MethodHandle findGetter(Class<?> a, String b, Class<?> c) throws NoSuchFieldException, IllegalAccessException

Throws

NoSuchFieldException
IllegalAccessException

findSetter

public MethodHandle findSetter(Class<?> a, String b, Class<?> c) throws NoSuchFieldException, IllegalAccessException

Throws

NoSuchFieldException
IllegalAccessException

findStaticGetter

public MethodHandle findStaticGetter(Class<?> a, String b, Class<?> c) throws NoSuchFieldException, IllegalAccessException

Throws

NoSuchFieldException
IllegalAccessException

findStaticSetter

public MethodHandle findStaticSetter(Class<?> a, String b, Class<?> c) throws NoSuchFieldException, IllegalAccessException

Throws

NoSuchFieldException
IllegalAccessException

bind

public MethodHandle bind(Object a, String b, MethodType c) throws NoSuchMethodException, IllegalAccessException

Throws

NoSuchMethodException
IllegalAccessException

unreflect

public MethodHandle unreflect(Object a) throws IllegalAccessException

unreflectSpecial

public MethodHandle unreflectSpecial(Object a, Class<?> b) throws IllegalAccessException

unreflectConstructor

public MethodHandle unreflectConstructor(Object a) throws IllegalAccessException

unreflectGetter

public MethodHandle unreflectGetter(Object a) throws IllegalAccessException

unreflectSetter

public MethodHandle unreflectSetter(Object a) throws IllegalAccessException

revealDirect

public MethodHandleInfo revealDirect(MethodHandle a)