| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public <T> T | |
| private Field | |
| public Object | Returns: the result of the method invocation.null if the method was of type void.the method call receiver, not receiver, String nullthe method name, not methodName, Object... nullthe arguments for the method invocation args)Invokes the first accessible method defined on the receiver'c class with the given name and a parameter list compatible to the given arguments. |
| private boolean | |
| public void | |
| private Class |
| ReflectExtensions | back to summary |
|---|---|
| public ReflectExtensions() | |
| get | back to summary |
|---|---|
| public <T> T get(Object receiver, String fieldName) throws SecurityException, NoSuchFieldException, IllegalArgumentException, IllegalAccessException Retrieves the value of the given accessible field of the given receiver.
| |
| getDeclaredField | back to summary |
|---|---|
| private Field getDeclaredField(Class<?> clazz, String name) throws NoSuchFieldException | |
| invoke | back to summary |
|---|---|
| public Object invoke(Object receiver, String methodName, Object... args) throws SecurityException, IllegalArgumentException, IllegalAccessException, InvocationTargetException, NoSuchMethodException Invokes the first accessible method defined on the receiver'c class with the given name and a parameter list compatible to the given arguments.
| |
| isCompatible | back to summary |
|---|---|
| private boolean isCompatible(Method candidate, String featureName, Object... args) | |
| set | back to summary |
|---|---|
| public void set(Object receiver, String fieldName, Object value) throws SecurityException, NoSuchFieldException, IllegalArgumentException, IllegalAccessException Sets the given value on an the receivers's accessible field with the given name.
| |
| wrapperTypeFor | back to summary |
|---|---|
| private Class | |