| Access | Constructor and Description |
|---|---|
| public | ReflectWrapper(ClassLoader
the classloader to use to construct the class. loader, String the classname of the object to construct. name)Construct a wrapped object using the no arg constructor. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public < desired type T> T | |
| public < desired type T> T | |
| public < desired type T> T | |
| public < desired type T> T | Returns: the object returned by the methodthe name of the method to call methodName, Class<?> the type of the first argument. argType1, Object the value of the first argument. arg1, Class<?> the type of the second argument. argType2, Object the value of the second argument. arg2)Call a method on the object with one argument. |
| obj | back to summary |
|---|---|
| private Object obj | |
| ReflectWrapper | back to summary |
|---|---|
| public ReflectWrapper(ClassLoader loader, String name) Construct a wrapped object using the no arg constructor.
| |
| ReflectWrapper | back to summary |
|---|---|
| public ReflectWrapper(Object obj) Constructor using a passed in object.
| |
| getObject | back to summary |
|---|---|
public <T> T getObject()
| |
| invoke | back to summary |
|---|---|
| public <T> T invoke(String methodName) Call a method on the object with no parameters.
| |
| invoke | back to summary |
|---|---|
| public <T> T invoke(String methodName, Class<?> argType, Object arg) Call a method on the object with one argument. | |
| invoke | back to summary |
|---|---|
| public <T> T invoke(String methodName, Class<?> argType1, Object arg1, Class<?> argType2, Object arg2) Call a method on the object with one argument.
| |