public class ReflectionHelper<T> extends Object
| Constructor and Description |
|---|
ReflectionHelper(T object) |
| Modifier and Type | Method and Description |
|---|---|
Object |
executeFunction(String function,
Class[] types,
Object... params) |
Object |
getValueFrom(String field) |
void |
setValueTo(String field,
Object value) |
public ReflectionHelper(T object)
public Object getValueFrom(String field) throws IllegalAccessException, NoSuchFieldException
public void setValueTo(String field, Object value) throws NoSuchFieldException, IllegalAccessException
public Object executeFunction(String function, Class[] types, Object... params) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException
Copyright © 2023. All rights reserved.