public class ReflectionUtils extends Object
| Constructor and Description |
|---|
ReflectionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Field |
getAccessibleField(Object obj,
String name) |
static Method |
getAccessibleMethod(Object obj,
String name,
Class<?>... args) |
static MethodHandle |
getHandle(Object obj,
String name,
Class<?>... args) |
static void |
invokeQuietly(MethodHandle handle,
Object instance) |
public static MethodHandle getHandle(Object obj, String name, Class<?>... args) throws ReflectiveOperationException
ReflectiveOperationExceptionpublic static Method getAccessibleMethod(Object obj, String name, Class<?>... args) throws NoSuchMethodException
NoSuchMethodExceptionpublic static Field getAccessibleField(Object obj, String name) throws NoSuchFieldException, SecurityException
public static void invokeQuietly(MethodHandle handle, Object instance)
Copyright © 2016 CenterDevice GmbH. All rights reserved.