| Package | Description |
|---|---|
| org.codehaus.plexus.util.reflection |
| Modifier and Type | Method and Description |
|---|---|
<T> java.lang.reflect.Constructor<T> |
Reflector.getConstructor(java.lang.Class<T> targetClass,
java.lang.Class[] params)
Return the constructor, checking the cache first and storing in cache if not already there..
|
java.lang.Object |
Reflector.getField(java.lang.Object target,
java.lang.String fieldName) |
java.lang.Object |
Reflector.getField(java.lang.Object target,
java.lang.String fieldName,
boolean breakAccessibility) |
java.lang.reflect.Method |
Reflector.getMethod(java.lang.Class targetClass,
java.lang.String methodName,
java.lang.Class[] params)
Return the method, checking the cache first and storing in cache if not already there..
|
java.lang.Object |
Reflector.getObjectProperty(java.lang.Object target,
java.lang.String propertyName) |
<T> T |
Reflector.getSingleton(java.lang.Class<T> theClass,
java.lang.Object[] initParams)
Retrieve the singleton instance of a class, given the array of parameters...
|
java.lang.Object |
Reflector.getStaticField(java.lang.Class targetClass,
java.lang.String fieldName) |
java.lang.Object |
Reflector.invoke(java.lang.Object target,
java.lang.String methodName,
java.lang.Object[] params)
Invoke the specified method on the specified target with the specified params...
|
java.lang.Object |
Reflector.invokeStatic(java.lang.Class targetClass,
java.lang.String methodName,
java.lang.Object[] params)
Invoke the specified static method with the specified params...
|
<T> T |
Reflector.newInstance(java.lang.Class<T> theClass,
java.lang.Object[] params)
Create a new instance of a class, given the array of parameters...
|