Package | Description |
---|---|
org.codehaus.plexus.util.reflection |
Modifier and Type | Method and Description |
---|---|
private java.lang.reflect.Method |
Reflector._getMethod(java.lang.Class targetClass,
java.lang.String methodName,
java.lang.Class[] params) |
<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..
|
private <T> java.util.Map<java.lang.String,java.lang.reflect.Constructor<T>> |
Reflector.getConstructorMap(java.lang.Class<T> theClass)
Retrieve the cache of constructors for the specified class.
|
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..
|
private java.util.Map<java.lang.String,?> |
Reflector.getMethodMap(java.lang.Class theClass,
java.lang.String methodName)
Retrieve the cache of methods for the specified class and method name.
|
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...
|