Class MethodHandleReflectionUtil

java.lang.Object
io.github.connellite.reflection.MethodHandleReflectionUtil

public class MethodHandleReflectionUtil extends Object
Field access, method invocation, and construction through cached MethodHandle and VarHandle instances. Resolve a handle once (methodHandle(Method), varHandle(Field), constructorHandle(Class, Class...), resolveRecordConstructorHandle(Class), etc.), then pass it as the first argument to invoke(MethodHandle, Object...), get(VarHandle, Object), set(VarHandle, Object, Object), or getInstance(MethodHandle, Object...).

For MethodHandle invocation:

Classic reflection helpers (ReflectionUtil.getMethodByName(java.lang.Class<?>, java.lang.String), ReflectionUtil.lookupClass(), enum maps, generic introspection, etc.) remain on ReflectionUtil.